/* Common Authentication Page Styles */
:root {
    --primary-color: #2ecc71;
    --second-color: #27ae60;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-hover: rgba(46, 204, 113, 0.4);
    --focus-ring: rgba(46, 204, 113, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--second-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
}

/* Container Styles */
.auth-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-light);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.auth-container.large {
    max-width: 500px;
}

/* Header Styles */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 5px;
}

.welcome-text {
    color: var(--text-primary);
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 12px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    box-sizing: border-box;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Input with Icon */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

.form-input.with-icon {
    padding-left: 48px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
    user-select: none;
}

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

/* Button Styles */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--second-color) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

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

/* Link Styles */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

/* Divider */
.divider {
    margin: 25px 0;
    text-align: center;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 10px 16px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-primary);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: white;
}

.file-name {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .auth-container {
        padding: 30px 25px;
    }

    .logo {
        font-size: 28px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}