/* auth.css */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 1rem;
}

.auth-card {
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

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

.auth-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-input-group {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.8rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.auth-input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.auth-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-submit:hover {
    background-color: var(--primary-dark);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 1rem;
}

.social-auth {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-auth-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-auth-btn:hover {
    background-color: var(--background);
}

.auth-error {
    background-color: #ffebee;
    color: var(--error);
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.auth-success {
    background-color: #e8f5e9;
    color: var(--success);
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak {
    background-color: var(--error);
    width: 33.33%;
}

.strength-medium {
    background-color: var(--warning);
    width: 66.66%;
}

.strength-strong {
    background-color: var(--success);
    width: 100%;
}

.form-checkbox {
    display: block;
    padding-left: 15px;
    text-indent: -15px;
}

input[type="checkbox"] {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0;
    vertical-align: bottom;
    position: relative;
    top: -1px;
}