/* ============================================
   Import Main Styles
   ============================================ */
@import url('style.css');

/* ============================================
   Background Image for Login Page
   ============================================ */
.main-container {
    background-image: url('../../images/register-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ============================================
   Login Section
   ============================================ */
.login-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.login-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeInUp 1s ease 0.3s both;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    max-width: 150px;
    height: 110px;
    margin-bottom: 1rem;
    filter: none;
}

.login-welcome {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    text-align: right;
}

.welcome-highlight {
    color: #81C104;
    font-weight: 600;
}

/* ============================================
   Account Type Tabs
   ============================================ */
.account-type-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.tab-btn.active {
    background: #81C104;
    color: var(--text-light);
    box-shadow: 0 3px 10px rgba(129, 193, 4, 0.4);
}

.tab-btn.active:hover {
    background: #6fa803;
}

/* ============================================
   Login Form
   ============================================ */
.login-form {
    text-align: right;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: #81C104;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(129, 193, 4, 0.2);
    color: var(--text-light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.password-toggle:hover {
    color: #81C104;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: var(--transition);
}

.form-check-input:checked {
    background: #81C104;
    border-color: #81C104;
}

.form-check-input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 0.75rem;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.forgot-password-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.forgot-password-link:hover {
    color: #81C104;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: #81C104;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.btn-login:active {
    transform: translateY(0);
}

/* Register Link */
.register-link {
    margin-bottom: 1.5rem;
    text-align: center;
}

.register-link p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.register-link a {
    color: #81C104;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link a:hover {
    color: #6fa803;
    text-decoration: underline;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider-text {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Google Login Button */
.btn-google-login {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google-login:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.btn-google-login:active {
    transform: translateY(0);
}

.google-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-welcome {
        font-size: 1.1rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password-link {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-welcome {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
