* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend Deca', sans-serif;
    background: #fff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 0, 15, 0.05) 0%, rgba(122, 0, 22, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(82, 0, 15, 0.15);
    width: 100%;
    max-width: 450px;
    border: 2px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #52000f 0%, #7a0016 100%);
}

.login-container:hover {
    box-shadow: 0 25px 80px rgba(82, 0, 15, 0.2);
    transform: translateY(-5px);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    background: linear-gradient(135deg, #52000f 0%, #7a0016 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(82, 0, 15, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-title {
    font-size: 2rem;
    font-weight: 700;
    color: #52000f;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #52000f;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group label i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.input-container {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Lexend Deca', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #52000f;
    background: white;
    box-shadow: 0 0 0 4px rgba(82, 0, 15, 0.1);
    transform: translateY(-2px);
}

.form-control:focus + .input-icon {
    color: #52000f;
    transform: scale(1.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.password-toggle:hover {
    color: #52000f;
    background: rgba(82, 0, 15, 0.1);
}

.forgot-password {
    text-align: right;
    margin-top: -15px;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #52000f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password a:hover {
    color: #7a0016;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #52000f;
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #52000f 0%, #7a0016 100%);
    color: white;
    border: none;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(82, 0, 15, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.create-account {
    text-align: center;
}

.create-account p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.create-account-btn {
    background: transparent;
    color: #52000f;
    border: 2px solid #52000f;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Lexend Deca', sans-serif;
}

.create-account-btn:hover {
    background: #52000f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 0, 15, 0.3);
}

.footer {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #52000f;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #52000f;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #52000f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #7a0016;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(82, 0, 15, 0.3);
}

.footer-text {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-text p a{
    color: #52000f;
}

.footer-text strong {
    color: #52000f;
}

.error-message {
    background: #ffe6e6;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }

    .login-container {
        padding: 40px 30px;
        margin: 20px 0;
    }

    .logo-title {
        font-size: 1.8rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-icons {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }

    .logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .logo-title {
        font-size: 1.6rem;
    }

    .form-control {
        padding: 14px 16px 14px 45px;
    }

    .input-icon {
        left: 15px;
    }

    .password-toggle {
        right: 15px;
    }
}