/* Dark Blue Theme for IoT Login System - Blue Dark Theme */

:root {
    /* Blue Dark Theme Colors */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-darker: #006699;
    --primary-light: #66e0ff;
    --accent: #ff6b6b;
    --danger: #ff6b6b;
    --success: #51cf66;
    --warning: #ffd93d;
    --info: #74c0fc;
    
    /* Text Colors */
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-error: #ff6b6b;
    --text-success: #51cf66;
    --text-primary-button: #444444;
    --text-secondary-button: #FEFFBE;
    
    /* Background Colors */
    --surface: #0a0a0a;
    --surface-light: #1a1a1a;

    --card-bg: #141414;
    --card-hover: #1f1f1f;

    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-overlay: rgba(10, 10, 10, 0.98);

    /* System Modals */
    --bg-modal-header-start: #181830;
    --bg-modal-header-end: #1f1f1f;

    /* Info Modals */
    --bg-info-modal-header-start: #181830;
    --bg-info-modal-header-end: #1f1f1f;

    /* Success Modals */
    --bg-success-modal-header-start: #181830;
    --bg-success-modal-header-end: #1f1f1f;

    /* Error Modals */
    --bg-error-modal-header-start: #181830;
    --bg-error-modal-header-end: #1f1f1f;

    /* Warning Modals */
    --bg-warning-modal-header-start: #181830;
    --bg-warning-modal-header-end: #1f1f1f;


    



    /* Border Colors */
    --border: #2a2a2a;
    --border-light: #3a3a3a;
    --border-accent: #00d4ff;
    
    /* Shadow Colors */
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-accent: rgba(0, 212, 255, 0.3);
    --glow: rgba(0, 212, 255, 0.3);
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Blue Dark Theme */
[data-theme="blue_dark"] {
    --primary: #00d4ff;
    --primary-dark: #01012c;
    --primary-darker: #020221;
    --primary-light: #66e0ff;
    --accent: #ff6b6b;
    --danger: #ff6b6b;
    --success: #51cf66;
    --warning: #ffd93d;
    --info: #74c0fc;
    --surface: #0a0a0a;
    --surface-light: #1a1a1a;
    --card-bg: #141414;
    --card-hover: #1f1f1f;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border: #2a2a2a;
    --border-light: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(0, 212, 255, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}


i {
    margin-right: 4px
}
/* Background Container */
.background-container {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, var(--surface-light) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

#iot-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

/* Enhanced Mouse Interaction Effects */
.mouse-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.9) 0%, rgba(0, 212, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: fadeOut 1.2s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(-50%, -50%);
    }
}

.mouse-ripple {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    animation: rippleExpand 1s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

#loginButton{
    width: 100%;
    text-align:center;
}


/* Top Menu */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
}


.logo h1 {
    color: var(--primary);
    font-family: "Prompt", sans-serif;
    font-size: 38px;
    font-weight: 600;
    font-style: italic;
}

.logo span {
    color: var(--text);
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    font-size: 38px;
    font-style: italic;
}

.eye {
    width: 100%;
    text-align: center;
}

.eye img {
    height: 64px;
    width: auto;
}


.clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.clock i {
    color: var(--primary);
}

/* Main Section */
.main-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 70px;
}


.section-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 16px;
    border-radius: 8px;
    border: 1px inset var(--primary);
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    color: var(--primary);
}

.section-info i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.section-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.login-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s;
}


.login-container:hover::before {
    left: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--info);
    font-size: 0.9rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 999999;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 0px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--primary);
   /* box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); */
}

.input-group.error {
    border-color: var(--text-error);
}

.input-group.success {
    border-color: var(--text-success);
}
/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0px;
    padding-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    margin-right: 10px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}


.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.password-toggle-btn {
     background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 500;
}

.password-toggle-btn:hover {
     background: linear-gradient(135deg, var(--border) 0%, var(--surface-light) 100%);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.password-toggle-btn:active {
    transform: scale(0.95);
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    text-align: center;
}


.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
   /* left: -0%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;*/
}

.btn:hover::before {
    left: 100%;
}


.btn-primary {
    padding: 13px;
    background: linear-gradient(135deg, var(--primary-dark) 30%,  var(--primary-darker) 100%);
    color: var(--text-secondary-button);
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    opacity: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-darker) 30%,  var(--primary-dark) 100%);
    transform: translateY(-1px);
    color: var(--text);
    transform: translateY(-1px);
    border-color: var(--primary);
    transform: translateY(-1px);
    opacity: 1;
}

.btn-primary[disabled]:hover { 
    background: linear-gradient(135deg, var(--primary-dark) 30%,  var(--primary-darker) 100%);
    color: var(--text-secondary-button);
    font-weight: 500;
    font-size: 15px;
    
     border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: default;
    opacity: 0.6;
}

.btn-secondary {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    color: var(--text-secondary-button);
    border: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
   /* background: var(--border);*/
    color: var(--text);
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--border) 0%, var(--surface-light) 100%);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}



.error-message {
    position: absolute;
    bottom: -1.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--text-error);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.error-message.show {
    opacity: 1;
}

/* Form Actions */
.form-actions {
    margin-bottom: 25px;
}

.button-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}


.button-row .btn-secondary {
    flex: 1;
    text-align: center;
}

.login-btn {
    width: 46%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary-dark));
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::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;
}

.login-btn:hover::before {
    left: 100%;
}

/* Secondary Button */

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-menu {
        padding: 0 1rem;
    }
    
    .main-section {
        padding: 1rem;
        margin-top: 50px;
    }
    
    .login-container {
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }

    .footer {
    padding-top: 10px;
    padding-bottom: 64px;
    }

    .footer-content {
    padding: 0 1rem;

}
}

@media (max-width: 480px) {
    .top-menu {
        height: 60px;
    }
    
    .main-section {
        margin-top: 50px;
    }
    
    .login-container {
        padding: 1rem;
    }
    
    .form-input {
        padding: 0.75rem 0.75rem;
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus States */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}


.error-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.logo_image {
    height: 40px;
    width: auto;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
    }
    
}





/* ==================== FORGOT PASSWORD MODAL STYLES ==================== */

/* Forgot Password Link */
.forgot-password-link {
    width: 100%;
    text-align: right;
    padding-right: 0px;
    margin-top: 1.5rem;
}

.forgotPasswordLink {
    float: right;
}

.forgot-password-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    top: 10px;
}

.forgot-password-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.forgot-password-link a::before {
    content: '\f084';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Send Email Link */
.send-email-link {
    width: 100%;
    text-align: right;
    padding-right: 0px;
    margin-top: 1.5rem;
}

.send-email-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    top: 10px;
}

.send-email-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.send-email-link a::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}


/* Button Icon Animations */
@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconSwing {
    0% {
        transform: rotate(0deg);
        transform-origin: top left;
    }
    25% {
        transform: rotate(40deg);
        transform-origin: top left;
    }
    50% {
        transform: rotate(0deg);
        transform-origin: top left;
    }
    75% {
        transform: rotate(20deg);
        transform-origin: top left;
    }
    100% {
        transform: rotate(0deg);
        transform-origin: top left;
    }
}

@keyframes iconBing {
    0% {
        transform: rotate(0deg);
        transform-origin: top left;
    }
    50% {
        transform: rotate(120deg);
        transform-origin: top left;
    }
    100% {
        transform: rotate(0deg);
        transform-origin: top left;
    }
}

.icon-rotate,
.icon-swing,
.icon-bing {
    display: inline-block;
}
 
@keyframes iconPulse {  
    0% {  
        transform: scale(1);  
    }  
    50% {  
        transform: scale(1.3);  
    }  
    100% {  
        transform: scale(1);  
    }  
} 
.icon-rotate,  
.icon-swing,  
.icon-bing,  
.icon-pulse {  
    display: inline-block;  
} 
