/* ==========================
   PAGE INSCRIPTION
   ========================== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --accent-color: #16a34a;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --border-color: #e2e8f0;
    --shadow-xl: 0 20px 25px rgba(0,0,0,.1);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
        135deg,
        var(--light-bg) 0%,
        #ffffff 50%,
        rgba(22, 163, 74, 0.05) 100%
    );
    color: var(--text-primary);
}

main {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 4% 10px;
    margin-top: 20px;
}

.auth-form {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 45px 50px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-color),
        var(--secondary-color)
    );
}

.auth-form h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--primary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--primary-color)
    );
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.auth-form button:hover {
    transform: translateY(-2px);
}

.error {
    margin-bottom: 20px;
    padding: 14px;
    color: var(--danger-color);
    background: rgba(239,68,68,.1);
    border: 2px solid rgba(239,68,68,.3);
    border-radius: 12px;
    text-align: center;
}

.required {
    color: var(--danger-color);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

.auth-switch a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.oauth-container {
    margin-top: 20px;
    text-align: center;
}

.oauth-container p {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-oauth img {
    height: 20px;
    margin-right: 8px;
}

.btn-oauth.google {
    background: #4285F4;
}
.btn-oauth.google:hover { background: #357ae8; }

.btn-oauth.microsoft {
    background: #0078D4;
}
.btn-oauth.microsoft:hover { background: #005a9e; }

.btn-oauth.facebook {
    background: #1877F2;
}
.btn-oauth.facebook:hover { background: #0f5bb5; }