/* ============================================================
   McDoctor.ai — Auth pages stylesheet
   Style: Minecraft / pixel / neon, matches the main site
   ============================================================ */

/* === LAYOUT === */
.auth-page-wrapper {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding-top: 60px;
}

@media (max-width: 700px) {
    .auth-page-wrapper {
        padding-top: 30px;
    }
}

/* === FLASH MESSAGES === */
.auth-flash-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: "Minecraftia", monospace;
    font-size: 15px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-flash-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-flash-text {
    flex: 1;
    word-break: break-word;
}

.auth-flash-success {
    background: rgba(108, 195, 73, 0.15);
    border: 1px solid #6cc349;
    color: #b9ffaa;
}

.auth-flash-error {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid #ff6b6b;
    color: #ffbaba;
}

.auth-flash-info {
    background: rgba(12, 225, 255, 0.10);
    border: 1px solid #0ce1ff;
    color: #d3f8ff;
}

.auth-flash-warning {
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid #f5a623;
    color: #ffdfaa;
}

.auth-flash-api_key {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid #38bdf8;
    color: #aae0ff;
    font-family: "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
}

/* === CARDS === */
.auth-card {
    width: calc(100% - 40px);
    max-width: 460px;
    background: rgb(0 0 0 / 44%);
    border: 3px solid #425a73;
    border-radius: 10px;
    padding: 36px 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    backdrop-filter: blur(8px);
    position: relative;
}

.auth-card-wide {
    max-width: 720px;
}


.auth-card-header {
    margin-bottom: 26px;
}

.auth-title {
    font-family: "Minecraft", Arial, sans-serif;
    font-size: 32px;
    color: #fff;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px #3e3e3e;
}

.auth-subtitle {
    font-family: "Minecraftia", monospace;
    font-size: 15px;
    color: #a0c8a0;
    margin: 0;
    line-height: 1.5;
}

/* === FORMS === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.auth-label {
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    color: #c0e0c0;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-label-link {
    color: #7aca73;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.auth-label-link:hover {
    color: #9aea96;
    text-decoration: underline;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: #0b0f18;
    border: 2px solid #2b2b2b;
    border-radius: 8px;
    color: #fff;
    font-family: "Minecraftia", monospace;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #555;
}

.auth-input:focus {
    border-color: #6cc349;
    box-shadow: 0 0 0 3px rgba(108, 195, 73, 0.15);
}

.has-error .auth-input {
    border-color: #ff6b6b;
}

.has-error .auth-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.auth-field-error {
    color: #ff8a8a;
    font-family: "Minecraftia", monospace;
    font-size: 13px;
    margin-top: 2px;
}

.auth-field-hint {
    color: #888;
    font-family: "Minecraftia", monospace;
    font-size: 12px;
    margin-top: 2px;
}

.auth-form-error-general {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid #ff6b6b;
    color: #ffbaba;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    text-align: center;
}

/* Checkbox */
.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    color: #c0e0c0;
    line-height: 1.5;
}

.auth-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #6cc349;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-label a {
    color: #7aca73;
    text-decoration: none;
}

.auth-checkbox-label a:hover {
    color: #9aea96;
    text-decoration: underline;
}

/* === BUTTONS === */
.auth-btn {
    display: inline-block;
    padding: 13px 24px;
    font-family: "Minecraftia", monospace;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    box-sizing: border-box;
}

.auth-btn-primary {
    width: 100%;
    background: linear-gradient(#4caf50, #3d8a3f);
    color: #fff;
    border: 3px solid #2f6b32;
    box-shadow: 0 4px #214c23;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    background: linear-gradient(#5fcb63, #4caf50);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px #214c23;
}

.auth-btn-secondary {
    background: linear-gradient(#5ba2ff, #3d76c9);
    color: #fff;
    border: 3px solid #2f5095;
    box-shadow: 0 4px #1e315e;
}

.auth-btn-secondary:hover {
    background: linear-gradient(#70b4ff, #5ba2ff);
    transform: translateY(-1px);
}

.auth-form-alt {
    margin: 16px 0 0 0;
    text-align: center;
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    color: #888;
}

.auth-form-alt a {
    color: #7aca73;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.auth-form-alt a:hover {
    color: #9aea96;
    text-decoration: underline;
}

/* === INFO BOX (next to form) === */
.auth-info-box {
    width: calc(100% - 32px);
    max-width: 460px;
    background: rgb(35 0 57 / 27%);
    border: 2px solid rgb(75 0 227 / 35%);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}


.auth-info-content h3 {
    margin: 0 0 8px 0;
    font-family: "Minecraftia", monospace;
    font-size: 15px;
    color: #cbaaff;
}

.auth-info-content ul {
    margin: 0;
    padding-left: 20px;
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    color: #d2c0e0;
    line-height: 1.7;
}

.auth-info-content li {
    margin-bottom: 4px;
}

/* === INFO CARD (inside auth-card) === */
.auth-info-card {
    background: rgba(12, 225, 255, 0.06);
    border-left: 3px solid #0ce1ff;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.auth-info-card p {
    margin: 4px 0;
    font-family: "Minecraftia", monospace;
    font-size: 14px;
    color: #d3f8ff;
    line-height: 1.6;
}

/* === ACTIONS (button rows) === */
.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.auth-actions .auth-btn {
    width: 100%;
}

@media (min-width: 480px) {
    .auth-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* === SUCCESS / ERROR ICONS === */
.auth-success-icon,
.auth-error-icon {
    font-size: 64px;
    text-align: center;
    margin: 0 auto 16px;
    display: block;
    line-height: 1;
}

/* === DASHBOARD STATS (placeholder) === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.dashboard-stat {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #2e313a;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
}

.dashboard-stat-label {
    font-family: "Minecraftia", monospace;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.dashboard-stat-value {
    font-family: "Minecraft", Arial, sans-serif;
    font-size: 24px;
    color: #6cc349;
    text-shadow: 1px 1px #1a3a1a;
}

/* === RESPONSIVE === */
@media (max-width: 540px) {
    .auth-card {
        padding: 24px 20px;
    }

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

    .auth-info-box {
        padding: 16px;
    }
}
