/**
 * Authentication Styles for Shemeza Safari Escapes
 */

/* Auth Section Layout */
.auth-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    display: flex;
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.auth-image {
    flex: 1;
    display: none;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-form-container {
    flex: 1;
    padding: 40px;
}

.auth-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

/* Auth Form Styles */
.auth-form-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.auth-form-wrapper p {
    color: var(--color-text-light);
    margin-bottom: 25px;
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--color-primary);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
}

.strength-meter {
    height: 4px;
    background-color: var(--color-border);
    border-radius: 2px;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    color: var(--color-text-light);
}

/* Password Toggle Button */
.password-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.toggle-password {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--color-primary);
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border);
}

.auth-divider span {
    position: relative;
    background-color: var(--color-white);
    padding: 0 15px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Social Auth Buttons */
.social-auth {
    margin-bottom: 25px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Error and Success Messages */
.auth-error,
.auth-success {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-error {
    background-color: rgba(255, 77, 77, 0.1);
    color: #d32f2f;
    border-left: 3px solid #d32f2f;
    display: none;
}

.auth-error:not(:empty) {
    display: block;
}

.auth-success {
    background-color: rgba(77, 255, 77, 0.1);
    color: #388e3c;
    border-left: 3px solid #388e3c;
    display: none;
}

.auth-success:not(:empty) {
    display: block;
}

/* Dark Mode Styles */
body.dark-mode .auth-container {
    background-color: var(--color-bg-dark);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-form-wrapper h2 {
    color: var(--color-primary-light);
}

body.dark-mode .auth-divider span {
    background-color: var(--color-bg-dark);
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group input[type="password"] {
    background-color: var(--color-bg-dark-secondary);
    border-color: var(--color-border-dark);
    color: var(--color-text-dark);
}

body.dark-mode .form-group input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-light-rgb), 0.2);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .auth-image {
        display: block;
    }
}

@media (max-width: 767px) {
    .auth-section {
        padding: 40px 0;
    }
    
    .auth-container {
        flex-direction: column;
        max-width: 450px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
}
