/**
 * Mind2Way - Auth Pages Styles
 * Shared styles for login and register pages
 */

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    overflow-x: hidden;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* 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-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.2s;
    outline: none;
    max-width: 100%;
}

.form-input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-50);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.2s;
    outline: none;
    background-color: white;
    cursor: pointer;
    max-width: 100%;
}

.form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-50);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 16px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--brand-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.reset-panel {
    padding: 16px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.18);
}

.reset-hint {
    margin: 12px 0 0;
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

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

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

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

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

/* Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 12px;
    }

    .auth-card {
        padding: 24px 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-logo img {
        max-width: 150px;
    }

    .form-group {
        margin-bottom: 16px;
    }

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

    .btn-submit {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .auth-container {
        padding: 8px;
    }

    .auth-card {
        padding: 20px 12px;
    }

    .auth-title {
        font-size: 20px;
    }
}
