/* Authentication Pages Styles */

:root {
    --primary: #071739;
    --secondary: #4B6328;
    --warm-brown: #A68868;
    --warm-beige: #E3C39D;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #071739 0%, #4B6328 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert ul li {
    margin-bottom: 5px;
}

.alert ul li:last-child {
    margin-bottom: 0;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Form Styles */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--warm-brown);
    box-shadow: 0 0 0 3px rgba(166, 136, 104, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--warm-brown);
}

/* User Type Selector */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.user-type-option {
    position: relative;
    cursor: pointer;
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.option-content i {
    font-size: 2rem;
    color: var(--warm-brown);
    margin-bottom: 10px;
    display: block;
}

.option-content span {
    display: block;
    font-weight: 600;
    color: #333;
}

.user-type-option input[type="radio"]:checked + .option-content {
    border-color: var(--warm-brown);
    background: rgba(166, 136, 104, 0.05);
}

.user-type-option:hover .option-content {
    border-color: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.link-small {
    color: var(--warm-brown);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-small:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google i {
    color: #4285f4;
    font-size: 1.2rem;
}

.btn-google:hover {
    background: #f9f9f9;
    border-color: #4285f4;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-footer a {
    color: var(--warm-brown);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 25px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .user-type-selector {
        grid-template-columns: 1fr;
    }
}