/* login.css - Premium Edition */

.premium-login {
   position: relative;
   min-height: 100vh; /* Navbar&Footer olmasa bile tam ekran, varsa da scroll yapmadan oturması için */
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-primary); /* Koyu Arka Plan, premium hissiyat */
   padding: var(--section-py) var(--container-pad);
   overflow: hidden;
   z-index: 1;
}

/* Dekoratif Background Objeleri (Dinamik Aydınlatmalar) */
.premium-login__bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
   z-index: -1;
}

.premium-login__circle {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   opacity: 0.4;
   animation: float 10s infinite alternate ease-in-out;
}

.premium-login__circle--1 {
   width: 400px;
   height: 400px;
   background: var(--color-gold);
   top: -100px;
   left: -100px;
}

.premium-login__circle--2 {
   width: 300px;
   height: 300px;
   background: #1a1a2e;
   bottom: -50px;
   right: -50px;
   animation-delay: -5s;
}

.premium-login__circle--3 {
   width: 200px;
   height: 200px;
   background: #3e3e5c;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   animation-duration: 15s;
   opacity: 0.2;
}

@keyframes float {
   0% { transform: translateY(0) scale(1); }
   100% { transform: translateY(30px) scale(1.05); }
}

/* Card Container */
.premium-login__container {
   width: 100%;
   max-width: 480px;
   margin: 0 auto;
   animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
   from { opacity: 0; transform: translateY(40px); }
   to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Card Style */
.premium-login__card {
   background: rgba(255, 255, 255, 0.03);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: var(--radius-lg);
   padding: 3rem 2.5rem;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
   position: relative;
}

/* Brand Area */
.premium-login__brand {
   text-align: center;
   margin-bottom: 2.5rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
}

.premium-login__brand a {
   font-family: var(--font-heading);
   font-size: 2rem;
   font-weight: 400;
   color: var(--color-gold);
   letter-spacing: -0.5px;
}

.premium-login__brand a strong {
   font-weight: 700;
   color: var(--color-white);
}

.premium-login__brand span {
   color: var(--color-text-muted);
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   font-weight: 600;
}

/* Header Text */
.premium-login__header {
   margin-bottom: 2rem;
}

.premium-login__header h2 {
   color: var(--color-white);
   font-family: var(--font-heading);
   font-size: 1.5rem;
   margin-bottom: 0.5rem;
   font-weight: 600;
}

.premium-login__header p {
   color: #9ca3af;
   font-size: 0.95rem;
   line-height: 1.5;
}

/* Alerts */
.alert-box {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 1rem 1.25rem;
   border-radius: var(--radius-sm);
   margin-bottom: 1.5rem;
   font-size: 0.9rem;
   font-weight: 500;
   animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
   from { opacity: 0; transform: scale(0.98); }
   to { opacity: 1; transform: scale(1); }
}

.alert-box svg {
   width: 20px;
   height: 20px;
   fill: currentColor;
}

.alert-box--error {
   background-color: rgba(239, 68, 68, 0.1);
   color: #fca5a5;
   border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-box--success {
   background-color: rgba(34, 197, 94, 0.1);
   color: #86efac;
   border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Form Styles */
.auth-form {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.input-group {
   position: relative;
   width: 100%;
}

.input-field {
   width: 100%;
   background: rgba(255, 255, 255, 0.05);
   border: none;
   border-radius: var(--radius-sm);
   padding: 1.2rem 1rem 0.5rem 1rem;
   font-family: var(--font-body);
   font-size: 1rem;
   color: var(--color-white);
   transition: all 0.3s ease;
   min-height: 54px;
}

.input-field:focus {
   outline: none;
   background: rgba(255, 255, 255, 0.08);
}

.input-label {
   position: absolute;
   left: 1rem;
   top: 50%;
   transform: translateY(-50%);
   color: #9ca3af;
   font-size: 1rem;
   cursor: text;
   transition: all 0.2s ease-out;
   pointer-events: none;
}

/* Floating Label Magic */
.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
   top: 0.5rem;
   font-size: 0.75rem;
   transform: translateY(0);
   color: var(--color-gold);
}

/* Password Toggle Icon */
.password-toggle {
   position: absolute;
   right: 1rem;
   top: 50%;
   transform: translateY(-50%);
   background: transparent;
   border: none;
   cursor: pointer;
   padding: 5px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #9ca3af;
   transition: color 0.3s ease;
   z-index: 2;
}

.password-toggle:hover {
   color: var(--color-gold);
}

.password-toggle svg {
   width: 18px;
   height: 18px;
   fill: currentColor;
}

.input-field[type="password"], .input-field[name="password"] {
   padding-right: 3rem; /* Göz ikonuna yer açıyoruz! */
}

/* Bottom Border Glow Effect */
.input-border {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 2px;
   background: var(--color-gold);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.3s ease;
   border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.input-field:focus ~ .input-border {
   transform: scaleX(1);
}

/* Primary Button */
.auth-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.75rem;
   width: 100%;
   background: var(--color-gold);
   color: var(--color-primary);
   padding: 1rem;
   border-radius: var(--radius-sm);
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 1rem;
   border: none;
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   margin-top: 0.5rem;
}

.auth-btn svg {
   width: 18px;
   fill: currentColor;
   transition: transform 0.3s ease;
}

.auth-btn:hover {
   background: var(--color-gold-dark);
   transform: translateY(-2px);
   box-shadow: 0 10px 20px rgba(196, 161, 99, 0.2);
}

.auth-btn:hover svg {
   transform: translateX(4px);
}

/* Footer / Links */
.auth-footer {
   margin-top: 2rem;
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
}

.auth-footer p {
   color: #6b7280;
   font-size: 0.85rem;
}

.home-link, .back-link {
   color: #9ca3af;
   font-size: 0.9rem;
   font-weight: 500;
   text-decoration: none;
   transition: color 0.3s ease;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.back-link svg {
   width: 14px;
   fill: currentColor;
}

.home-link:hover, .back-link:hover {
   color: var(--color-gold);
}

/* Input Auto-fill overwrites for webkit (Dark mode fill fix) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1c1c2e inset !important;
    -webkit-text-fill-color: white !important;
}

/* 2FA Code Input Spacing */
#code {
   letter-spacing: 0.5rem;
   text-align: center;
   font-weight: 700;
   font-size: 1.25rem;
   padding-left: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
   .premium-login__card {
      padding: 2.5rem 1.5rem;
      border: none;
      box-shadow: none;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
   }
   
   .premium-login__brand a {
      font-size: 1.75rem;
   }
}
