/* Admin Login Styles */
:root {
    --primary-color: #3f51b5;
    --primary-hover: #303f9f;
    --secondary-color: #ff4081;
    --text-color: #2c3345;
    --text-light: #5f6980;
    --error-color: #f44336;
    --success-color: #4caf50;
    --border-color: #e1e5eb;
    --border-radius: 8px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #f0f2f5;
    height: 100vh;
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Admin Login Container */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.admin-login-box {
    width: 450px;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    z-index: 10;
    position: relative;
}

/* Admin Login Header */
.admin-login-header {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    display: inline-block;
    margin-bottom: 20px;
}

.logo img {
    height: 40px;
}

.admin-login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.admin-login-header p {
    color: var(--text-light);
    font-size: 15px;
}

/* Form Styles */
.admin-login-form {
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 13px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--text-color);
}

.error-message {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 5px;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-container {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    margin-left: 8px;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

/* Admin Login Footer */
.admin-login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.admin-copyright {
    margin-top: 8px;
    font-size: 12px;
}

/* Background Animation */
.admin-login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    animation: float 9s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 200px;
    left: 30%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(10deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Responsive Styles */
@media (max-width: 576px) {
    .admin-login-box {
        width: 90%;
        padding: 30px 20px;
    }

    .admin-login-header h1 {
        font-size: 24px;
    }

    .shape {
        display: none;
    }
}
