.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4318FF, #9f7aea);
    padding: 20px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(67, 24, 255, 0.05);
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.logo-area {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
    margin-top: 8px;
}

.login-logo {
    height: 88px;
    width: 88px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(67, 24, 255, 0.08);
    background: #fff;
    transition: box-shadow 0.2s;
}

.brand-name {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-content {
    position: relative;
    z-index: 1;
}

.title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: white;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #f8fafc;
    border-color: #4318FF;
    transform: translateY(-2px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background-color: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    color: #64748b;
    font-size: 14px;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0 16px 0 48px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #4318FF;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.08);
}

.form-control:focus + i {
    color: #4318FF;
}

.toggle-password {
    position: absolute;
    right: 45px;
    top: px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#password {
    padding-right: 48px !important;
}

.toggle-password:hover {
    color: #4318FF;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4318FF, #9f7aea);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.2);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.forgot-password-container {
    text-align: center;
    margin: 20px 0;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #4318FF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.forgot-password-btn:hover {
    background-color: rgba(67, 24, 255, 0.05);
    transform: translateY(-1px);
}

.forgot-password-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.forgot-password-btn:hover i {
    transform: scale(1.1);
}

.register-link {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
    font-size: 15px;
}

.register-link a {
    color: #4318FF;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(67, 24, 255, 0.1),
                0 0 0 1px rgba(67, 24, 255, 0.05);
    max-width: 400px;
    width: 90%;
}

.loading-animation {
    position: relative;
    height: 120px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #4318FF;
    border-left-color: #4318FF;
    animation: spinnerRotate 1.5s ease-in-out infinite;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(67, 24, 255, 0.3);
    border-left-color: rgba(67, 24, 255, 0.3);
    animation: spinnerRotateReverse 2s ease-in-out infinite;
}

.ai-icon {
    color: #4318FF;
    font-size: 1.8rem;
    animation: pulseIcon 2s ease-in-out infinite;
    transform: rotate(-45deg);
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinnerRotateReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(-45deg) scale(1.1);
        opacity: 1;
    }
}

/* Forgot Password Modal Styles */
.forgot-password-overlay,
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-password-overlay.show,
.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.forgot-password-modal,
.success-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.forgot-password-overlay.show .forgot-password-modal,
.success-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.forgot-password-header {
    background: linear-gradient(135deg, #4318FF, #9f7aea);
    color: white;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-forgot-password {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-forgot-password:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.forgot-password-content {
    padding: 24px;
}

.forgot-password-subtitle {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.forgot-password-form .form-group {
    margin-bottom: 24px;
}

.forgot-password-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 12px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-send {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4318FF, #9f7aea);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.3);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-send i {
    transition: transform 0.3s ease;
}

.btn-send:hover:not(:disabled) i {
    transform: translateX(2px);
}

/* Success Modal Styles */
.success-content {
    padding: 32px 24px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 0.6s ease-out;
}

.success-icon i {
    color: white;
    font-size: 32px;
}

@keyframes successPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.success-message {
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-back-to-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4318FF, #9f7aea);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-to-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form-control {
        height: 48px;
    }

    .btn-login {
        height: 48px;
    }

    .loading-content {
        padding: 2rem;
    }

    .brand-name {
        font-size: 20px;
    }

    .login-logo {
        height: 60px;
        width: 60px;
    }

    /* Forgot Password Modal Mobile Styles */
    .forgot-password-modal,
    .success-modal {
        width: 95%;
        max-width: 320px;
    }

    .forgot-password-header {
        padding: 20px;
    }

    .forgot-password-title {
        font-size: 18px;
    }

    .forgot-password-content {
        padding: 20px;
    }

    .forgot-password-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cancel,
    .btn-send {
        width: 100%;
        justify-content: center;
    }

    .success-content {
        padding: 24px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon i {
        font-size: 24px;
    }

    .success-title {
        font-size: 20px;
    }

    .success-message {
        font-size: 14px;
    }
}
