/* ==========================================================================
   Modern Auth Pages CSS
   Login/Register Pages for Lab Management System
   ========================================================================== */

/* Standard UI - Clean and readable */
html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    line-height: 1.6;
}

/* Standard headings */
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

/* Standard buttons */
.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.login100-form-btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    min-width: 200px;
}

/* Standard forms */
.form-control, .form-select, .input100 {
    font-size: 1rem;
    padding: 0.625rem 1rem;
}

.form-label, label, .wrap-input100 label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Standard text */
.txt1, .txt2 {
    font-size: 0.875rem;
}

/* Standard title */
.login100-form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Standard inputs */
.wrap-input100 {
    margin-bottom: 1.5rem;
}

/* CSS Variables */
:root {
    --auth-primary: #0d6efd;
    --auth-primary-dark: #0a58ca;
    --auth-secondary: #6c757d;
    --auth-success: #198754;
    --auth-danger: #dc3545;
    --auth-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --auth-card-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --auth-radius: 1rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #212529;
    background: var(--auth-bg-gradient);
    min-height: 100vh;
}

/* Limiter Container */
.limiter {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Container Login */
.container-login100 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: var(--auth-bg-gradient);
}

/* Wrap Login */
.wrap-login100 {
    width: 1000px;
    max-width: 95%;
    background: #fff;
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-card-shadow);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* Login More (Banner Side) */
.login100-more {
    width: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.login100-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(13, 110, 253, 0.85); */
}

/* Login Form */
.login100-form {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form Title */
.login100-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

.login100-form-title img {
    max-width: 180px;
    height: auto;
}

/* Form Group */
.wrap-input100 {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.wrap-input100 label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Input */
.input100 {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-weight: 400;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input100:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input100.is-invalid {
    border-color: var(--auth-danger);
    padding-right: calc(1.5em + 0.75rem);
    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 stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5zM6 8.2a.3.3 0 000 .6.3.3 0 000-.6z'/%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);
}

.input100.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Focus Input */
.focus-input100 {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.focus-input100::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--auth-primary);
    transition: all 0.4s;
}

.input100:focus ~ .focus-input100::before {
    width: 100%;
}

/* Container Form Button */
.container-login100-form-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

/* Login Button */
.login100-form-btn {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background-color: var(--auth-primary);
    border: 1px solid var(--auth-primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.login100-form-btn:hover {
    background-color: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.login100-form-btn:active {
    transform: translateY(0);
}

/* Register Link */
.txt1 {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.txt2 {
    font-size: 0.875rem;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.txt2:hover {
    text-decoration: underline;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-login a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-login a:hover {
    transform: translateY(-2px);
}

/* Language Dropdown */
.container-login100-form-btn .dropdown {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.dropdown-toggle {
    background: transparent;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.dropdown-menu {
    min-width: 120px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #212529;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--auth-primary);
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.remember-me label {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    cursor: pointer;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    font-size: 0.875rem;
    color: var(--auth-primary);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Error Messages */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--auth-danger);
}

/* Utility Classes */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* Responsive */
@media (max-width: 768px) {
    .wrap-login100 {
        flex-direction: column;
    }
    
    .login100-more {
        width: 100%;
        height: 200px;
    }
    
    .login100-form {
        width: 100%;
        padding: 2rem;
    }
    
    .login100-form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .limiter {
        padding: 0.5rem;
    }
    
    .container-login100 {
        padding: 0.5rem;
    }
    
    .wrap-login100 {
        border-radius: 0.5rem;
    }
    
    .login100-form {
        padding: 1.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrap-login100 {
    animation: fadeIn 0.5s ease-out;
}

.login100-more {
    animation: fadeIn 0.6s ease-out;
}
