/* ================================================
   GALERI PROGRAMI - AUTH PAGES CSS
   Login, Register, Forgot Password
================================================ */

/* CSS Variables */
:root {
    --theme-default: #7A70BA;
    --theme-secondary: #48A3D7;
    --body-font-color: #2F2F3B;
    --white: #fff;
    --light-bg: #EEF1F6;
    --text-gray: rgba(82, 82, 108, 0.8);
    --bs-heading-color: #3D434A;
    --gradient-primary: linear-gradient(135deg, #7A70BA 0%, #48A3D7 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-auth: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #7A70BA 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.20);
    --transition: all 0.3s ease;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--gradient-auth);
    overflow-x: hidden;
}

/* Background Elements */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite linear;
}

.bg-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.bg-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(-60px) rotate(240deg);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 0s;
}

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

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

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 80%;
    animation-delay: -9s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 90%;
    animation-delay: -12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Left Side - Branding */
.auth-branding-side {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-branding-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.branding-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

/* Brand Header */
.brand-header {
    margin-bottom: 3rem;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.brand-link:hover {
    transform: scale(1.05);
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-heading-color);
    font-size: 2rem;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.brand-sub {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Hero Content */
.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Login Features */
.login-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Login Stats */
.login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Right Side - Form */
.auth-form-side {
    background: white;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-heading-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Demo Accounts */
.demo-accounts {
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.demo-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.demo-header i {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.demo-item strong {
    color: white;
}

/* Alert Messages */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

/* Form Styles */
.auth-form {
    margin-bottom: 2rem;
}

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

.form-label {
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: var(--light-bg);
    border: 2px solid #e9ecef;
    border-right: none;
    color: var(--text-gray);
    border-radius: 12px 0 0 12px;
    width: 50px;
    justify-content: center;
}

.form-control {
   border: 2px solid #e9ecef;
   border-left: none;
   border-radius: 0 12px 12px 0;
   padding: 0.875rem 1rem;
   font-size: 1rem;
   font-weight: 500;
   background: white;
   transition: var(--transition);
   color: var(--bs-heading-color);
}

.form-control:focus {
   border-color: var(--theme-default);
   box-shadow: 0 0 0 0.2rem rgba(122, 112, 186, 0.15);
   background: white;
}

.form-control:focus + .input-group-text,
.input-group:focus-within .input-group-text {
   border-color: var(--theme-default);
   background: rgba(122, 112, 186, 0.1);
   color: var(--theme-default);
}

.password-toggle {
   border: 2px solid #e9ecef;
   border-left: none;
   border-radius: 0 12px 12px 0;
   background: var(--light-bg);
   color: var(--text-gray);
   transition: var(--transition);
   z-index: 10;
}

.password-toggle:hover {
   background: var(--theme-default);
   color: white;
   border-color: var(--theme-default);
}

.password-strength {
   margin-top: 0.5rem;
   height: 3px;
   background: #e9ecef;
   border-radius: 2px;
   overflow: hidden;
}

.strength-bar {
   height: 100%;
   background: var(--gradient-primary);
   width: 0%;
   transition: var(--transition);
   border-radius: 2px;
}

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

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

.form-check-input {
   width: 18px;
   height: 18px;
   margin-right: 0.5rem;
   border: 2px solid #e9ecef;
   border-radius: 4px;
   background-color: white;
   transition: var(--transition);
}

.form-check-input:checked {
   background-color: var(--theme-default);
   border-color: var(--theme-default);
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
   font-weight: 500;
   color: var(--text-gray);
   cursor: pointer;
   user-select: none;
}

.forgot-link {
   color: var(--theme-default);
   text-decoration: none;
   font-weight: 500;
   font-size: 0.9rem;
   transition: var(--transition);
}

.forgot-link:hover {
   color: var(--theme-secondary);
   text-decoration: underline;
}

/* Submit Button */
.btn-login {
   width: 100%;
   padding: 1rem 2rem;
   background: var(--gradient-primary);
   border: none;
   border-radius: 12px;
   font-weight: 700;
   font-size: 1.1rem;
   color: white;
   transition: var(--transition);
   position: relative;
   overflow: hidden;
   margin-bottom: 2rem;
}

.btn-login::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;
}

.btn-login:hover::before {
   left: 100%;
}

.btn-login:hover {
   background: var(--gradient-secondary);
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
   color: white;
}

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

.btn-loading {
   pointer-events: none;
   opacity: 0.8;
}

/* Social Login */
.social-login {
   margin-bottom: 2rem;
}

.divider {
   text-align: center;
   position: relative;
   margin-bottom: 1.5rem;
}

.divider::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 0;
   right: 0;
   height: 1px;
   background: #e9ecef;
}

.divider span {
   background: white;
   padding: 0 1rem;
   color: var(--text-gray);
   font-weight: 500;
   position: relative;
   z-index: 1;
}

.social-buttons {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1rem;
}

.btn-social {
   padding: 0.75rem 1rem;
   border: 2px solid #e9ecef;
   border-radius: 12px;
   background: white;
   font-weight: 600;
   transition: var(--transition);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   font-size: 0.9rem;
}

.btn-google {
   color: #db4437;
}

.btn-google:hover {
   background: #db4437;
   color: white;
   border-color: #db4437;
   transform: translateY(-2px);
}

.btn-microsoft {
   color: #00a1f1;
}

.btn-microsoft:hover {
   background: #00a1f1;
   color: white;
   border-color: #00a1f1;
   transform: translateY(-2px);
}

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

.register-link p {
   color: var(--text-gray);
   margin: 0;
   font-weight: 500;
}

.register-link a {
   color: var(--theme-default);
   text-decoration: none;
   font-weight: 700;
   transition: var(--transition);
}

.register-link a:hover {
   color: var(--theme-secondary);
   text-decoration: underline;
}

/* Security Info */
.security-info {
   display: flex;
   justify-content: center;
   gap: 2rem;
   flex-wrap: wrap;
   margin-bottom: 2rem;
}

.security-item {
   display: flex;
   align-items: center;
   color: var(--text-gray);
   font-size: 0.85rem;
   font-weight: 500;
}

.security-item i {
   margin-right: 0.5rem;
   font-size: 1rem;
}

/* Back to Home */
.back-to-home {
   position: absolute;
   top: 2rem;
   right: 2rem;
}

.back-link {
   display: flex;
   align-items: center;
   color: var(--text-gray);
   text-decoration: none;
   font-weight: 500;
   padding: 0.5rem 1rem;
   border-radius: 8px;
   transition: var(--transition);
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(10px);
}

.back-link:hover {
   background: var(--theme-default);
   color: white;
   transform: translateX(-2px);
}

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

.loading-content {
   text-align: center;
   color: white;
}

.loading-spinner {
   width: 50px;
   height: 50px;
   border: 4px solid rgba(255, 255, 255, 0.3);
   border-radius: 50%;
   border-top-color: white;
   animation: spin 1s ease-in-out infinite;
   margin: 0 auto 1rem;
}

@keyframes spin {
   to { 
       transform: rotate(360deg); 
   }
}

.loading-content p {
   font-weight: 600;
   font-size: 1.1rem;
}

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

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
   .hero-title {
       font-size: 3.5rem;
   }
   
   .form-container {
       padding: 4rem;
   }
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 1199px) {
   .auth-branding-side {
       padding: 2rem;
   }
   
   .hero-title {
       font-size: 2.5rem;
   }
   
   .form-container {
       padding: 2rem;
   }
}

/* Small devices (landscape phones, 768px and up) */
@media (max-width: 991px) {
   .auth-branding-side {
       display: none;
   }
   
   .auth-form-side {
       min-height: 100vh;
       background: white;
       position: relative;
   }
   
   .auth-form-side::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       height: 300px;
       background: var(--gradient-auth);
       z-index: 1;
   }
   
   .form-container {
       position: relative;
       z-index: 2;
       background: white;
       border-radius: 25px 25px 0 0;
       margin-top: 200px;
       box-shadow: var(--shadow-xl);
   }
   
   .back-to-home {
       top: 1rem;
       right: 1rem;
       z-index: 3;
   }
   
   .back-link {
       background: rgba(255, 255, 255, 0.9);
       color: var(--bs-heading-color);
   }
   
   /* Mobile Brand Header */
   .form-container::before {
       content: '';
       position: absolute;
       top: -100px;
       left: 50%;
       transform: translateX(-50%);
       width: 80px;
       height: 80px;
       background: var(--gradient-gold);
       border-radius: 20px;
       z-index: 3;
       box-shadow: var(--shadow-lg);
   }
   
   .form-container::after {
       content: '\f1b9';
       font-family: 'Font Awesome 6 Free';
       font-weight: 900;
       position: absolute;
       top: -100px;
       left: 50%;
       transform: translateX(-50%);
       width: 80px;
       height: 80px;
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 2rem;
       color: var(--bs-heading-color);
       z-index: 4;
   }
   
   .form-header {
       margin-top: 2rem;
   }
}

@media (max-width: 767px) {
   .form-container {
       padding: 2rem 1.5rem;
       margin-top: 150px;
   }
   
   .form-title {
       font-size: 2rem;
   }
   
   .social-buttons {
       grid-template-columns: 1fr;
   }
   
   .security-info {
       gap: 1rem;
       flex-direction: column;
       align-items: center;
   }
   
   .form-options {
       flex-direction: column;
       align-items: flex-start;
       gap: 0.5rem;
   }
   
   .demo-accounts {
       padding: 1rem;
   }
   
   .demo-item {
       font-size: 0.8rem;
   }
   
   .login-stats {
       grid-template-columns: 1fr;
       gap: 0.5rem;
   }
   
   .stat-number {
       font-size: 1.5rem;
   }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
   .form-container {
       padding: 1.5rem 1rem;
       margin: 120px 1rem 0;
       border-radius: 20px;
   }
   
   .form-title {
       font-size: 1.8rem;
   }
   
   .form-subtitle {
       font-size: 0.9rem;
   }
   
   .hero-title {
       font-size: 1.8rem;
   }
   
   .hero-subtitle {
       font-size: 1rem;
   }
   
   .btn-login {
       padding: 0.875rem 1.5rem;
       font-size: 1rem;
   }
   
   .back-to-home {
       top: 0.5rem;
       right: 0.5rem;
   }
   
   .back-link {
       padding: 0.5rem;
       font-size: 0.9rem;
   }
   
   .demo-list {
       gap: 0.25rem;
   }
   
   .demo-item {
       padding: 0.5rem;
       font-size: 0.75rem;
   }
}

/* ================================================
  ACCESSIBILITY IMPROVEMENTS
================================================ */

/* Focus styles */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
   outline: 2px solid var(--theme-secondary);
   outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
   :root {
       --theme-default: #5a4fcf;
       --theme-secondary: #2980b9;
       --text-gray: #333;
       --bs-heading-color: #000;
   }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
   }
   
   .bg-shape,
   .particle {
       animation: none;
   }
}

/* Print styles */
@media print {
   .auth-background,
   .social-login,
   .security-info,
   .back-to-home {
       display: none;
   }
   
   .auth-form-side {
       background: white;
   }
   
   body {
       background: white;
   }
}

/* ================================================
  CUSTOM ANIMATIONS
================================================ */

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

@keyframes fadeInDown {
   from {
       opacity: 0;
       transform: translateY(-30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

@keyframes slideInLeft {
   from {
       opacity: 0;
       transform: translateX(-30px);
   }
   to {
       opacity: 1;
       transform: translateX(0);
   }
}

@keyframes slideInRight {
   from {
       opacity: 0;
       transform: translateX(30px);
   }
   to {
       opacity: 1;
       transform: translateX(0);
   }
}

@keyframes shake {
   0%, 100% { transform: translateX(0); }
   25% { transform: translateX(-5px); }
   75% { transform: translateX(5px); }
}

/* Form validation states */
.was-validated .form-control:valid,
.form-control.is-valid {
   border-color: #28a745;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.98-.97-.97-.97-.97.97.97.97zm1.48-.97.97.97.97-.97-.97-.97-.97.97z'/%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: right calc(0.375em + 0.1875rem) center;
   background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
   border-color: #dc3545;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: right calc(0.375em + 0.1875rem) center;
   background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Password strength indicator */
.password-weak .strength-bar {
   width: 33%;
   background: #dc3545;
}

.password-medium .strength-bar {
   width: 66%;
   background: #ffc107;
}

.password-strong .strength-bar {
   width: 100%;
   background: #28a745;
}

/* ================================================
  END OF AUTH CSS
================================================ */

/* Logout Page Styles */
.logout-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logout-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Card Styles */
.logout-success-card,
.logout-confirm-card,
.already-logged-out-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Success Animation */
.success-animation {
    position: relative;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    position: relative;
    z-index: 2;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon.animate {
    transform: scale(1);
}

.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid #28a745;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Confirm Header */
.confirm-header {
    margin-bottom: 30px;
}

.confirm-icon,
.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.info-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

/* Titles */
.success-title,
.confirm-title,
.info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 15px;
}

.success-message,
.confirm-subtitle,
.info-message {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Success Info */
.success-info {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--bs-heading-color);
}

.info-item:last-child {
    margin-bottom: 0;
}

/* Session Info */
.current-session-info {
    background: var(--light2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.session-info-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 15px;
    text-align: center;
}

.session-details {
    display: grid;
    gap: 12px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--bs-heading-color);
}

.session-item i {
    width: 20px;
    font-size: 16px;
}

/* Warning */
.logout-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.warning-icon {
    color: var(--warning-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.warning-content h6 {
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.warning-content ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-gray);
}

.warning-content li {
    margin-bottom: 5px;
}

/* Actions */
.success-actions,
.confirm-actions,
.info-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Auto Redirect */
.auto-redirect {
    background: var(--light2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.redirect-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.btn-cancel-redirect {
    background: none;
    border: 1px solid var(--chart-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-redirect:hover {
    background: var(--light-bg);
    color: var(--bs-heading-color);
}

/* Quick Actions */
.quick-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--chart-border);
}

.quick-actions-title {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: center;
}

.quick-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--white);
    border: 1px solid var(--chart-border);
    border-radius: 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--theme-default);
    color: white;
    border-color: var(--theme-default);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 20px;
}

/* Footer */
.logout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    z-index: 3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-info {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

.security-info,
.support-info {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logout-container {
        max-width: 400px;
        padding: 15px;
    }
    
    .logout-success-card,
    .logout-confirm-card,
    .already-logged-out-card {
        padding: 30px 25px;
    }
    
    .success-title,
    .confirm-title,
    .info-title {
        font-size: 20px;
    }
    
    .success-actions,
    .confirm-actions,
    .info-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .quick-action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .logout-container {
        padding: 10px;
    }
    
    .logout-success-card,
    .logout-confirm-card,
    .already-logged-out-card {
        padding: 25px 20px;
    }
    
    .success-icon,
    .confirm-icon,
    .info-icon {
        width: 60px;
        height: 60px;
        font-size:24px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .session-details {
        gap: 8px;
    }
    
    .session-item {
        font-size: 13px;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .logout-success-card,
[data-theme="dark"] .logout-confirm-card,
[data-theme="dark"] .already-logged-out-card {
    background: rgba(45, 45, 45, 0.95);
    color: var(--bs-heading-color);
}

[data-theme="dark"] .current-session-info {
    background: var(--light-bg);
}

[data-theme="dark"] .auto-redirect {
    background: var(--light-bg);
}

[data-theme="dark"] .quick-action-btn {
    background: var(--light2);
    border-color: var(--chart-border);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .logout-success-card,
    .logout-confirm-card,
    .already-logged-out-card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .success-icon,
    .bg-shape,
    .success-ripple {
        animation: none;
    }
    
    .logout-success-card,
    .logout-confirm-card,
    .already-logged-out-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .logout-footer,
    .background-elements,
    .auto-redirect,
    .quick-actions {
        display: none;
    }
    
    .logout-page {
        background: white;
    }
    
    .logout-success-card,
    .logout-confirm-card,
    .already-logged-out-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.quick-action-btn:focus,
.footer-link:focus {
    outline: 2px solid var(--theme-default);
    outline-offset: 2px;
}

/* Custom Scrollbar */
.current-session-info::-webkit-scrollbar {
    width: 6px;
}

.current-session-info::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.current-session-info::-webkit-scrollbar-thumb {
    background: var(--chart-border);
    border-radius: 3px;
}

.current-session-info::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* Security Indicators */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 12px;
}

/* Tooltips */
.tooltip {
    position: absolute;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Custom Animations */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Error States */
.error-state {
    color: var(--danger-color);
    animation: shake 0.5s ease-in-out;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--danger-color);
    font-size: 14px;
    margin: 15px 0;
}

/* Success States */
.success-state {
    color: var(--success-color);
    animation: pulse 1s ease-in-out;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--success-color);
    font-size: 14px;
    margin: 15px 0;
}