/* Login Page Specific Styles */
.login-page {
    min-height: 120vh;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 600px;
    perspective: 1000px;
    margin: 20px 0;
    overflow: visible;
}

.auth-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(105, 167, 210, 0.2);
    transform-style: preserve-3d;
    transition: all 0.6s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(90deg);
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-400), var(--primary-500), var(--primary-600));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.2;
}

.auth-card.active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
}

.auth-card.signup-card {
    transform: rotateY(-90deg);
}

.auth-card.signup-card.active {
    transform: rotateY(0deg);
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(105, 167, 210, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(74, 113, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Select styling for signup form */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    height: 52px;
    min-height: 52px;
    line-height: 1.5;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-logo img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 12px;
}

.login-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(105, 167, 210, 0.1);
    border: 1px solid rgba(105, 167, 210, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #69a7d2;
    margin-top: 6px;
}

.login-notice i {
    font-size: 16px;
    color: #69a7d2;
}

.login-form {
    margin-bottom: 24px;
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(105, 167, 210, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    color: #f8fafc;
    box-sizing: border-box;
    height: 52px;
    min-height: 52px;
    width: 100%;
    line-height: 1.5;
    min-width: 0;
}

.form-input[type="password"] {
    padding-right: 50px;
    height: 52px;
    min-height: 52px;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 4px rgba(105, 167, 210, 0.2);
}

/* Ensure all form inputs have exactly the same height and width */
.form-input,
.form-input[type="email"],
.form-input[type="tel"],
.form-input[type="password"],
select.form-input {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
}

.form-input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(105, 167, 210, 0.1);
    border: 1px solid rgba(105, 167, 210, 0.2);
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin: 0;
    pointer-events: auto;
}

.password-toggle:hover {
    color: #e2e8f0;
    background: rgba(105, 167, 210, 0.2);
    border-color: rgba(105, 167, 210, 0.4);
    transform: translateY(-50%) scale(1.02);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-500);
}

.remember-me label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.4;
}

.kvkk-link {
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.kvkk-link:hover {
    color: var(--primary-300);
    border-bottom-color: var(--primary-300);
}

.forgot-password {
    font-size: 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-400);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(105, 167, 210, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.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(-2px);
    box-shadow: 0 12px 32px rgba(105, 167, 210, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-300), transparent);
}

.divider span {
    padding: 0 16px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid rgba(105, 167, 210, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.social-btn:hover {
    border-color: var(--primary-500);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(105, 167, 210, 0.3);
}

.social-btn i {
    font-size: 18px;
}

.google-btn {
    color: #DB4437;
}

.github-btn {
    color: #333;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    width: 100%;
}

.signup-link a {
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--primary-300);
}

.back-home {
    position: absolute;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 20;
}

.back-home:hover {
    color: white;
    transform: translateX(-4px);
}

.back-home i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page {
        min-height: 110vh;
        padding: 40px 15px;
    }

    .auth-card {
        padding: 24px 20px;
        margin: 20px 0;
        min-height: auto;
    }

    .login-title {
        font-size: 24px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .back-home {
        top: 20px;
        left: 20px;
    }

    .auth-container {
        min-height: auto;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .login-page {
        min-height: 105vh;
        padding: 30px 10px;
    }

    .auth-card {
        padding: 20px 16px;
        margin: 20px 0;
        min-height: auto;
    }

    .login-title {
        font-size: 22px;
    }

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

    .auth-container {
        min-height: auto;
        margin: 20px 0;
    }
}
