/* LOGIN & AUTH PAGES CSS */

:root {
    --primary: #0097b2;
    --primary-light: #31c2db;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
}
body {
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* Public Layout */
.public-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Auth Container */
.auth-container {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo-img {
    max-height: 70px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.alert ul li {
    margin: 0.25rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 151, 178, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.d-grid {
    display: grid;
}

.d-grid .btn {
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.625rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.password-field-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    bottom: 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
    line-height: 1;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle-icon {
    font-size: 1.2rem;
}

.password-field-wrapper .form-control {
    padding-right: 3rem;
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger);
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: var(--gray-700);
}

/* Utilities */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500);
}

.text-primary {
    color: var(--primary);
}

.text-decoration-none {
    text-decoration: none;
}

.fw-medium {
    font-weight: 500;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    justify-content: center;
}

.security-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.security-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.security-text {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.security-subtext {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 767px) {
    
    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
    
    .auth-logo-img {
        max-height: 60px;
        max-width: 200px;
    }
}
