/*
 * One Sphere Solutions - Authentication Styles
 * Modern, clean styling for login, registration and password reset pages
 */

/* ======================================
   1. GLOBAL STYLES
====================================== */
:root {
    /* Brand colors */
    --primary-color: #283848; /* Dark blue */
    --secondary-color: #d9a442; /* Gold */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Text colors */
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #6c757d;

    /* Background colors */
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --bg-white: #ffffff;

    /* Border colors */
    --border-color: #dee2e6;

    /* Shadow */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Font */
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ======================================
   2. AUTHENTICATION PAGES
====================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%); */
}

.auth-card {
    width: 100%;
    max-width: 550px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.auth-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.auth-logo {
    display: block;
    margin: 0 auto 15px;
    max-width: 150px;
    height: auto;
}

.auth-body {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 164, 66, 0.25);
}

.auth-form .input-icon {
    position: absolute;
    right: 15px;
    top: 40px;
    color: var(--text-muted);
}

.auth-form .btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.auth-form .btn-primary {
    color: var(--text-light);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .btn-primary:hover {
    background-color: #1a2530;
    border-color: #1a2530;
}

.auth-form .btn-secondary {
    color: var(--text-light);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.auth-form .btn-secondary:hover {
    background-color: #c08b35;
    border-color: #c08b35;
}

.auth-footer {
    text-align: center;
    padding: 0 30px 30px;
}

.auth-footer p {
    margin: 0;
    color: var(--text-muted);
}

.auth-links {
    margin-top: 15px;
}

.auth-links a {
    color: var(--primary-color);
    margin: 0 10px;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Password strength meter */
.password-strength-meter {
    height: 5px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 3px;
    position: relative;
}

.password-strength-meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strength-weak .password-strength-meter-fill {
    background-color: #dc3545;
    width: 25%;
}

.strength-medium .password-strength-meter-fill {
    background-color: #ffc107;
    width: 50%;
}

.strength-good .password-strength-meter-fill {
    background-color: #17a2b8;
    width: 75%;
}

.strength-strong .password-strength-meter-fill {
    background-color: #28a745;
    width: 100%;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
}

/* Toggle password visibility */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 42px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 16px;
}

.toggle-password:focus {
    outline: none;
}

/* Remember me checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    width: auto !important;
    margin-right: 10px;
}

.form-check-label {
    margin-bottom: 0 !important;
    font-weight: normal !important;
}

/* Divider with text */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Social login buttons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.twitter {
    color: #1DA1F2;
}

.social-btn.linkedin {
    color: #0077B5;
}

/* Responsive styles */
@media (max-width: 576px) {
    .auth-card {
        max-width: 100%;
    }

    .auth-body {
        padding: 20px;
    }

    .auth-footer {
        padding: 0 20px 20px;
    }
}
