* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

.login-page,
.switch-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card,
.switch-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.switch-card {
    width: min(640px, 100%);
}

.login-card h1,
.switch-card h1 {
    margin: 0 0 10px;
    color: #0b5aa8;
}

.login-card p,
.switch-card p {
    margin: 0 0 22px;
    color: #666;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
}

.login-form input {
    padding: 12px 14px;
    border: 1px solid #d6dce3;
    border-radius: 10px;
    font-size: 15px;
}

.login-form input:focus {
    outline: none;
    border-color: #0b5aa8;
    box-shadow: 0 0 0 3px rgba(11, 90, 168, 0.10);
}

.login-form button,
.switch-btn {
    border: none;
    border-radius: 10px;
    padding: 13px 18px;
    color: white;
    background: #0b5aa8;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
}

.login-form button:hover,
.switch-btn.ecampus:hover {
    background: #08498b;
}

.login-error {
    background: #fdecea;
    color: #a93226;
    border: 1px solid #f5c2c0;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.switch-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.logout-link {
    color: #c0392b;
    font-weight: 800;
    text-decoration: none;
}

.switch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.switch-btn.orienta {
    background: linear-gradient(135deg, #6d28d9, #ec4899);
}

.switch-btn.orienta:hover {
    filter: brightness(0.95);
}

@media (max-width: 600px) {
    .switch-actions {
        grid-template-columns: 1fr;
    }
}

.forgot-link {
    display: block;
    text-align: center;
    color: #0b5aa8;
    font-weight: 700;
    text-decoration: none;
    margin-top: -4px;
}

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

.login-success {
    background: #eaf7ef;
    color: #1e7e34;
    border: 1px solid #b7e1c1;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}
