﻿/*=====================================================
    ZenBioAttendance Modern Login Page
=====================================================*/

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --primary-blue: #2563eb;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.95);
}

/* System Fonts & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: url('../images/login-bg.png') no-repeat center center fixed;
    background-size: 100% 100%;
}

/* Full-screen wrapper that centers its child (.login-card) */
.login-container {
    width: 100vw;
    height: 100vh;
    display: flex !important;
    justify-content: center !important; /* Horizontally center */
    align-items: center !important; /* Vertically center */
    padding: 50px;
}

/* Remove or disable spacer divs */
.login-left-spacer {
    display: none !important;
}

/* Ensure the card has clean dimensions and depth */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    margin: 10px auto !important; /* Force center alignment */
    
}

/* Header Inside Card */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.header-icon-box {
    width: 64px;
    height: 64px;
    background: #dbeafe;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

    .header-icon-box i {
        font-size: 28px !important;
        color: var(--primary-blue) !important;
        margin: 0 !important;
    }

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* Custom Form & Semantic UI Overrides */
.custom-form .field {
    margin-bottom: 20px !important;
}

.custom-form label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--text-heading) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Input Fields */
.custom-input {
    width: 100% !important;
}

    .custom-input input {
        width: 100% !important;
        height: 48px !important;
        border-radius: 12px !important;
        padding: 0 16px 0 44px !important;
        font-size: 14px !important;
        border: 1px solid var(--border-color) !important;
        background: #f8fafc !important;
        color: var(--text-heading) !important;
        transition: all 0.2s ease-in-out !important;
    }

        .custom-input input:focus {
            background: #ffffff !important;
            border-color: var(--primary-blue) !important;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
        }

/* Password Eye Icon Positioning */
.password-box {
    position: relative !important;
    width: 100%;
}

    .password-box .password-toggle {
        position: absolute !important;
        right: 12px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        opacity: 0.6;
        transition: opacity 0.2s ease;
        z-index: 3;
    }

        .password-box .password-toggle:hover {
            opacity: 1;
        }

    .password-box input[type="password"],
    .password-box input[type="text"] {
        padding-right: 40px !important;
    }

/* Disable Microsoft Edge's native built-in eye icon */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* Checkbox Alignment */
.remember-field {
    margin-top: 6px;
    margin-bottom: 24px !important;
}

.checkbox-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

    .checkbox-container input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        accent-color: var(--primary-blue);
        cursor: pointer !important;
        margin: 0 !important;
    }

    .checkbox-container span {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: var(--text-body) !important;
        user-select: none;
    }

/* Submit Button */
.btn-submit {
    width: 100% !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease-in-out !important;
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    }

    .btn-submit:active {
        transform: translateY(0);
    }

/* Validation Message */
.validation-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* Footer */
.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 576px) {
    .login-card {
        padding: 28px 20px;
    }
}
