:root {
  /* Dark theme (default) */
  --bg-primary: linear-gradient(135deg, #1a2230 0%, #28384a 50%, #344557 100%);
  --bg-secondary: linear-gradient(135deg, #0066FF, #8B5CF6);
  --bg-tertiary:  linear-gradient(135deg, #00FF88, #0066FF);
  --bg-quaternary: linear-gradient(135deg, #FF6B35, #8B5CF6);
  --bg-dialog: #2F4156;
  --bg-image: radial-gradient(circle at 25% 25%, #0066FF 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #00FF88 1px, transparent 1px);
  --bg-container: #28384ab0;
  --bg-input: #2F4156;
  --color-password-bar: #d0d0d0c0;
  --text-primary: #FFFFFF;
  --text-secondary: #d0d0d0;
  --border-color: rgba(255, 255, 255, 0.1);
  --glow-icon: #00FF88;
  --hover-bg: #00e1ff0d;
  --border-input-focus: #0066FF;
  --shadow-input-focus: 0 0 20px rgba(0, 102, 255, 0.2);
  --circle-number: white;
  --selector-hover: rgba(255, 255, 255, 0.05);
  --scroolbar-thumb-hover: rgba(255, 255, 255, 0.2);
  --bg-botMsg: #2f4156;
  --success-color: #00FF88;
}

/* Light theme */
:root[data-theme='light'] {
  --bg-primary: linear-gradient(135deg, #e4eefb 0%, #f2f7fe 50%, #ffffff 100%);
  --bg-secondary: linear-gradient(135deg, #0066FF, #8B5CF6);
  --bg-tertiary: linear-gradient(135deg, #00FF88, #0066FF);
  --bg-quaternary: linear-gradient(135deg, #FF6B35, #8B5CF6);
  --bg-dialog:#ffffff;
  --bg-image: radial-gradient(circle at 25% 25%, #0066FF 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #00FF88 1px, transparent 1px);
  --bg-container: #f2f7fab0;
  --bg-input: #ffffff;
  --color-password-bar: #666666c0;
  --text-primary: #28384a;
  --text-secondary: #666666;
  --border-color: #00000014;
  --glow-icon: #34b97b;
  --hover-bg: #0066ff1a;
  --border-input-focus: #0066ff66;
  --shadow-input-focus: 0 0 10px #0066ff9e;
  --circle-number: #80d6bb;
  --selector-hover: #0066ff1a;
  --scroolbar-thumb-hover: #53535314;
  --bg-botMsg: #ffffffe6;
  --success-color: #02b461;
} 


* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                scrollbar-color 0.3s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--bg-secondary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--bg-tertiary);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: var(--bg-quaternary);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: var(--bg-image);
    background-size: 80px 80px;
    z-index: -1;
}

 /* Register Container */
.register-container {
    background: var(--bg-container);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.register-container::-webkit-scrollbar {
    width: 8px;
}

.register-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
    margin: 20px 0;
}

.register-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.register-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #00FF88, #8B5CF6);
    border-radius: 24px 24px 0 0;
}

/* Login Container */
.login-container {
    background: var(--bg-container);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #00FF88, #8B5CF6);
    border-radius: 24px 24px 0 0;
}

/* Header */
.login-header,.register-header {
    text-align: center;
    height: 80px;
    align-items: center;
    justify-content: center;
}

.login-header {
    margin-bottom: 80px;
}

.register-header {
    margin-bottom: 80px;
}

#logo img {
  height: 100%;
}

#logo {
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.login-title, .register-title {
    font-size: 30px;
    font-weight: 500;
    background:var(--text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    margin-top: 3px;
    font-family: 'Lilita One', cursive;
}

.login-subtitle, .register-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

/* Form */
.login-form, .register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}


#registerForm .input-group {
    margin-top: 10px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 45px
}

.input-field:focus {
    border-color: #0066FF;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.input-field:focus + .input-icon {
    color: #0066FF;
}

.input-field:focus ~ .input-label {
    color: #0066FF;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
}

#registerForm .password-toggle1,
#registerForm .password-toggle2,
#loginForm .password-toggle {
    position: absolute;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
}
#registerForm .password-toggle1 {
    top: calc(41%); 
}

#registerForm .password-toggle2,
#loginForm .password-toggle {
    top: calc(50% + 12px); 
}


.input-icon i, 
.password-toggle i,
.password-toggle1 i,
.password-toggle2 i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}


/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    padding: 8px 0;
}

.strength-bar {
    height: 4px;
    background: var(--color-password-bar);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: linear-gradient(90deg, #FF6B35, #FF8A50); width: 25%; }
.strength-fair { background: linear-gradient(90deg, #FFD700, #FFA500); width: 50%; }
.strength-good { background: linear-gradient(90deg, #00FF88, #00CC70); width: 75%; }
.strength-strong { background: linear-gradient(90deg, #0066FF, #8B5CF6); width: 100%; }

.strength-text {
    font-size: 12px;
    color: #888;
}

.input-field:focus + .input-icon i,
.password-toggle:hover i,
.password-toggle1:hover i,
.password-toggle2:hover i {
    color: #0066FF;
}

.password-toggle:hover, .password-toggle1:hover, .password-toggle2:hover {
    color: #0066FF;
}

/* Remember Me */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -8px 0 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox.checked {
    background: linear-gradient(135deg, #0066FF, #8B5CF6);
    border-color: #0066FF;
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066FF, #8B5CF6);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button::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-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

  /* Register Button */
.registerButton {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066FF, #8B5CF6);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.registerButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.registerButton:not(:disabled)::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;
}

.registerButton:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.registerButton:not(:disabled):hover::before {
    left: 100%;
}

.registerButton:active {
    transform: translateY(0);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-text {
    color: #888;
    font-size: 14px;
}

.register-button {
    color: #0066FF;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.register-button:hover {
    color: var(--success-color);
    text-decoration: underline;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-text {
    color: #888;
    font-size: 14px;
}

.login-button-link {
    color: #0066FF;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.login-button-link:hover {
    color:  var(--success-color);
    text-decoration: underline;
}

/* Validation Messages */
.error-message {
    color: #FF6B35;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.success-message {
    color:  var(--success-color);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .login-button {
    background: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 24px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.error-info {
    background: rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 12px 24px;
    opacity: 0;
    display: none;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    position: relative;
}

.error-info.show {
    opacity: 1;
    display: block;
    transform: translateY(0);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mantieni l'effetto pulse sul bordo */
.error-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { border-color: rgba(220, 53, 69, 0.2); }
    50% { border-color: rgba(220, 53, 69, 0.4); }
    100% { border-color: rgba(220, 53, 69, 0.2); }
}

.error-info h4 {
    color: #dc3545;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-info h4::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 580px) {
    .register-container {
        margin: 20px;
        padding: 40px 30px;
    }
    
    .register-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/*loading*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0066FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Show message in overlay*/
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-box {
    background: var(--bg-primary);
    padding: 25px 40px;
    border-radius: 12px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.message-box.success {
    border: 2px solid #4CAF50;
}

.message-box.error {
    border: 2px solid #f44336;
}

.message-box h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.message-overlay.show {
    opacity: 1;
    visibility: visible;
}

.message-overlay.show .message-box {
    transform: scale(1);
}

/*toggle theme*/
.toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.toggle-switch-theme {
  width: 80px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: linear-gradient(145deg, #e8f4f8, #d1e7dd);
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
      inset 5px 5px 10px rgba(174, 207, 230, 0.2),
      inset -5px -5px 10px rgba(255, 255, 255, 0.9),
      0 5px 20px rgba(0, 0, 0, 0.1);
}

.toggle-switch-theme.dark {
  background: linear-gradient(145deg, #2c2c54, #1a1a2e);
  box-shadow: 
      inset 5px 5px 10px rgba(0, 0, 0, 0.3),
      inset -5px -5px 10px rgba(70, 70, 120, 0.2),
      0 5px 20px rgba(0, 0, 0, 0.3);
}

.toggle-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    box-shadow: 
        0 3px 10px rgba(255, 215, 0, 0.4),
        inset 1px 1px 5px rgba(255, 255, 255, 0.3),
        inset -1px -1px 5px rgba(255, 180, 0, 0.2);
}

.toggle-ball.dark {
  transform: translateX(40px);
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  box-shadow: 
      0 3px 10px rgba(240, 240, 240, 0.3),
      inset 1px 1px 5px rgba(255, 255, 255, 0.4),
      inset -1px -1px 5px rgba(200, 200, 200, 0.2);
}

.sun-icon, .moon-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.toggle-ball.dark .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.8);
}

.moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
}

.toggle-ball.dark .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.toggle-bg-icons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  font-size: 12px;
  opacity: 0.6;
}

.sun-bg {
  left: 10px;
  opacity: 1;
}

.moon-bg {
  right: 10px;
  opacity: 0.5;
}

.toggle-switch-theme.dark .sun-bg {
  opacity: 0.5;
}

.toggle-switch-theme.dark .moon-bg {
  opacity: 1;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.2); }
}

.toggle-switch:hover {
  transform: translateY(-2px);
}

.toggle-switch.dark:hover {
  box-shadow: 
      inset 5px 5px 10px rgba(0, 0, 0, 0.4),
      inset -5px -5px 10px rgba(70, 70, 120, 0.3),
      0 8px 25px rgba(0, 0, 0, 0.4);
}
.logout-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--text-primary);
    border-color: rgba(255, 71, 87, 0.3);
    opacity: 1;
    transform: scale(1.05);
}

/* confirmation message */
@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease-in-out;
}

.overlay.fadeOut {
    animation: fadeOut 0.2s ease-in-out forwards;
}

.confirm-dialog-title {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.confirm-dialog {
    background: var(--bg-dialog);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-primary);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    animation: scaleIn 0.2s ease-out forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.confirm-btn, .confirm-reset-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn.yes, .confirm-reset-btn.yes {
    background: #dc3545;
    color: white;
    font-family: 'Nunito', sans-serif;
}

.confirm-btn.no, .confirm-btn.ok, .confirm-reset-btn.no {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: 'Nunito', sans-serif;
}

.confirm-btn:hover, .confirm-reset-btn:hover {
    transform: scale(1.05);
}

.confirm-btn.yes.btn-green {
    background: #28a745; /* Verde */
    color: white;
    font-family: 'Nunito', sans-serif;
}

.confirm-btn.yes.btn-green:hover {
    background: #218838; /* Verde più scuro per hover */
}
/* Add media query for mobile responsiveness */
@media screen and (max-width: 768px) {
    .toggle-container {
        top: 15px;
        right: 15px;
    }
}

/* Media Queries for Smaller Screens */
/* ...existing code... */

@media screen and (max-width: 1500px) {
    .login-container, .register-container {
        max-width: 600px;
        margin: 15px;
        padding: 30px 25px;
    }
    .login-header, .register-header {
        margin-bottom: 60px;
    }

    .login-title, .register-title {
        font-size: 26px;
    }

    .input-field {
        padding: 14px 18px;
    }

    .floating-orb {
        transform: scale(0.8);
    }

    .orb-1 {
        top: 15%;
        left: 8%;
    }

    .orb-2 {
        top: 55%;
        right: 12%;
    }
    .orb-3 {
        bottom: 15%;
        left: 15%;
    }
}

@media screen and (max-width: 800px) {
    .login-container, .register-container {
        width: 90%;
        max-width: none;
        padding: 20px;
    }

    .login-container {
        margin: 60px 20px 20px 20px;
    }

    .register-container {
        margin: 70px 20px 100px 20px; 
    }

    .toggle-container {
        top: 15px;
        right: 15px;
        position: absolute; 
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 16px;
    }

    .input-field {
        font-size: 14px;
    }

    .login-button {
        padding: 12px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .login-container, .register-container {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
    }

    .register-link {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .floating-orb {
        display: none; /* Optional: hide background orbs on mobile */
    }

    .toggle-container {
        top: 10px;
        right: 10px;
    }
}