/* ============================================
   LEDECH Admin Panel - Account Pages CSS
   Extracted from Login.cshtml and ForgotPassword.cshtml
   ============================================ */

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

:root {
    --ledech-blue: #247ca3;
    --ledech-blue-light: #2e94c2;
    --ledech-blue-lighter: #5bb5d9;
    --ledech-blue-dark: #1a5f7d;
    --ledech-white: #ffffff;
    --ledech-gold: #c7a434;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #051520 0%, #0a2a3d 50%, #041018 100%);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Arka plan gradient */
.bg-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 40% at 30% 30%, rgba(36, 124, 163, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 70%, rgba(36, 124, 163, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #051520 0%, #0a2a3d 50%, #041018 100%);
    z-index: 0;
}

/* Dev LEDECH yazısı - arka plan */
.bg-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(150px, 28vw, 450px);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(36, 124, 163, 0.15);
    text-stroke: 1px rgba(36, 124, 163, 0.15);
    user-select: none;
    position: relative;
    transition: transform 0.3s ease-out;
}

/* Işıltı efekti - mouse takibi */
.bg-text::before {
    content: 'LEDECH';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(36, 124, 163, 0.3) 45%,
            rgba(91, 181, 217, 0.5) 50%,
            rgba(36, 124, 163, 0.3) 55%,
            transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    background-size: 200% 100%;
    background-position: var(--shine-pos, -100%) 0;
    transition: background-position 0.1s ease-out;
}

/* Glow efekti */
.bg-text-glow {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(150px, 28vw, 450px);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: rgba(36, 124, 163, 0.03);
    filter: blur(30px);
    user-select: none;
    z-index: -1;
}

/* Parçacıklar - aşağıdan yukarı uçan küller */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(91, 181, 217, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -3s;
    animation-duration: 18s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: -6s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: -9s;
    animation-duration: 16s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: -12s;
    animation-duration: 24s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: -2s;
    animation-duration: 19s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: -7s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: -4s;
    animation-duration: 17s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: -10s;
    animation-duration: 23s;
}

.particle:nth-child(10) {
    left: 15%;
    animation-delay: -5s;
    animation-duration: 25s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(11) {
    left: 35%;
    animation-delay: -8s;
    animation-duration: 20s;
}

.particle:nth-child(12) {
    left: 55%;
    animation-delay: -1s;
    animation-duration: 18s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(13) {
    left: 75%;
    animation-delay: -11s;
    animation-duration: 22s;
}

.particle:nth-child(14) {
    left: 85%;
    animation-delay: -6s;
    animation-duration: 19s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(15) {
    left: 25%;
    animation-delay: -13s;
    animation-duration: 21s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Login wrapper */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Glass card */
.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo area */
.logo-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--ledech-blue) 0%, var(--ledech-blue-light) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(36, 124, 163, 0.35);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 60%);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.logo-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

/* Gerçek logo için */
.logo-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    padding: 10px;
    background: linear-gradient(135deg, var(--ledech-blue) 0%, var(--ledech-blue-light) 100%);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(36, 124, 163, 0.35);
}

.logo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ledech-white);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8d5e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Alert */
.alert {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.alert-error svg {
    width: 20px;
    height: 20px;
    color: #f87171;
    flex-shrink: 0;
}

.alert-error span {
    color: #fca5a5;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.alert-success svg {
    color: #4ade80;
}

.alert-success span {
    color: #86efac;
    font-size: 0.875rem;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--ledech-white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.form-input:focus {
    border-color: var(--ledech-blue);
    background: rgba(36, 124, 163, 0.1);
    box-shadow: 0 0 0 3px rgba(36, 124, 163, 0.12);
}

.form-input:focus~.input-icon {
    color: var(--ledech-blue-light);
}

/* Button */
.btn-login,
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--ledech-blue) 0%, var(--ledech-blue-light) 100%);
    border: none;
    border-radius: 14px;
    color: var(--ledech-white);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-login:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(36, 124, 163, 0.4);
}

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

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

/* Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.footer-text svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--ledech-gold);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Back link */
.back-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--ledech-blue-light);
}

.back-link svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Remember me checkbox */
#rememberMe:checked+.checkbox-custom {
    background: linear-gradient(135deg, var(--ledech-blue) 0%, var(--ledech-blue-light) 100%) !important;
    border-color: var(--ledech-blue) !important;
}

#rememberMe:checked+.checkbox-custom svg {
    opacity: 1 !important;
}

.remember-me-label:hover .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 380px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .logo-icon,
    .logo-image {
        width: 60px;
        height: 60px;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .form-input {
        font-size: 16px;
        padding: 0.9rem 0.9rem 0.9rem 2.75rem;
    }

    .bg-text {
        font-size: 100px;
    }
}

@media (min-width: 381px) and (max-width: 480px) {
    .login-card {
        padding: 2.5rem 2rem;
    }

    .form-input {
        font-size: 16px;
    }
}

@media (max-height: 500px) {
    .login-wrapper {
        align-items: center;
        padding: 15px;
    }

    .login-container {
        max-width: 380px;
    }

    .login-card {
        padding: 1.25rem 1.5rem;
    }

    .logo-area {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: left;
    }

    .logo-icon,
    .logo-image {
        width: 45px;
        height: 45px;
        margin: 0;
        border-radius: 12px;
    }

    .logo-icon svg {
        width: 24px;
        height: 24px;
    }

    .logo-text .logo-title {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }

    .logo-text .logo-subtitle {
        font-size: 0.65rem;
    }

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

    .form-label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .form-input {
        padding: 0.7rem 0.7rem 0.7rem 2.5rem;
        border-radius: 10px;
    }

    .btn-login,
    .btn-primary {
        padding: 0.75rem;
        border-radius: 10px;
        margin-top: 0.25rem;
    }

    .login-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .status-indicator {
        display: none;
    }

    .bg-text {
        font-size: 80px;
    }
}

@media (min-height: 501px) and (max-height: 650px) {
    .login-card {
        padding: 2rem;
    }

    .logo-area {
        margin-bottom: 1.5rem;
    }

    .logo-icon,
    .logo-image {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }

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

@media (min-width: 641px) and (max-width: 1024px) {
    .login-container {
        max-width: 450px;
    }

    .login-card {
        padding: 3rem;
    }
}

@media (min-width: 1025px) {
    .login-container {
        max-width: 480px;
    }

    .login-card {
        padding: 3.5rem;
        border-radius: 28px;
    }

    .logo-icon,
    .logo-image {
        width: 80px;
        height: 80px;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 2rem;
    }

    .form-input {
        padding: 1.1rem 1.1rem 1.1rem 3.25rem;
    }

    .btn-login,
    .btn-primary {
        padding: 1.1rem;
    }
}

@media (min-width: 1440px) {
    .login-container {
        max-width: 520px;
    }

    .login-card {
        padding: 4rem;
    }

    .logo-icon,
    .logo-image {
        width: 90px;
        height: 90px;
    }

    .logo-title {
        font-size: 2.25rem;
    }

    .form-input {
        padding: 1.2rem 1.2rem 1.2rem 3.5rem;
        font-size: 1rem;
    }

    .btn-login,
    .btn-primary {
        padding: 1.2rem;
        font-size: 1.05rem;
    }
}

@media (min-width: 2000px) {
    .login-container {
        max-width: 580px;
    }

    .login-card {
        padding: 4.5rem;
    }

    .logo-icon,
    .logo-image {
        width: 100px;
        height: 100px;
    }

    .logo-icon svg {
        width: 50px;
        height: 50px;
    }

    .logo-title {
        font-size: 2.5rem;
    }

    .form-input {
        padding: 1.35rem 1.35rem 1.35rem 3.75rem;
        font-size: 1.1rem;
        border-radius: 16px;
    }

    .btn-login,
    .btn-primary {
        padding: 1.35rem;
        font-size: 1.15rem;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {

    .bg-base,
    .bg-text-container,
    .particles {
        display: none !important;
    }

    body {
        background: white;
    }

    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }

    .logo-title,
    .form-label {
        color: #333;
        -webkit-text-fill-color: #333;
    }
}

/* ==================== REMEMBER ME & FORGOT PASSWORD ==================== */

/* Remember Me Group */
.remember-me-group {
    margin-bottom: 1rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.checkbox-icon {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
}

.remember-me-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Forgot Password Link */
.forgot-password-container {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--ledech-blue-light);
}