/* CricStars shared authentication pages: login, register, forgot password */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: #f4f5f7;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 22px;
    font-family: Arial, Helvetica, sans-serif;
    color: #202124;

    /* More visible red glow in the upper-right corner */
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(255, 0, 25, 0.19) 0%,
            rgba(255, 70, 85, 0.12) 25%,
            rgba(255, 120, 130, 0.055) 42%,
            transparent 62%
        ),
        #f4f5f7;
}

/* Each page keeps its existing wrapper class */
.login-box,
.register-box,
.box {
    width: 100%;
    max-width: 430px;
    margin: auto;
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.logo,
.register-logo {
    text-align: center;
    margin-bottom: 14px;
    font-size: 0;
}

.logo img,
.register-logo img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.2;
    color: #171717;
}

.login-subtitle,
.register-subtitle {
    text-align: center;
    margin: 0 0 30px;
    color: #737780;
    font-size: 15px;
    line-height: 1.5;
}

.box > p {
    margin: 0 0 28px;
    color: #737780;
    font-size: 15px;
    line-height: 1.65;
}

form {
    width: 100%;
    margin: 0;
}

input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 16px;
    margin: 0 0 16px;
    border: 1px solid #dedfe3;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: #888b93;
    opacity: 1;
}

input:focus {
    border-color: #e60012;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.09);
}

button {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 15px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: #e60012;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

button:hover {
    background: #c90010;
}

button:active {
    transform: scale(0.99);
}

.message {
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.message.success {
    color: #087f23;
    background: #e7f7eb;
}

.message.error,
.login-box .message,
.box .message.error {
    color: #d00000;
    background: #ffe8e8;
}

.register-link,
.login-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    color: #686b72;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.register-link a,
.login-link a {
    color: #e60012;
    text-decoration: none;
    font-weight: 700;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

.forgot-password,
.back {
    margin-top: 12px;
    text-align: center;
    font-size: 15px;
}

.forgot-password a,
.back a {
    color: #e60012;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password a:hover,
.back a:hover {
    color: #c90010;
    text-decoration: underline;
}

@media (max-width: 380px) {
    body {
        padding: 24px 18px;
    }

    .logo img,
    .register-logo img {
        width: 84px;
        height: 84px;
    }

    h2 {
        font-size: 26px;
    }
}
