* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --primary: #2aaec7;
    --primary-dark: #168ea5;
    --background: #05070d;
    --card: #10131c;
    --text: #ffffff;
    --muted: #a8afc0;
    --border: rgba(255, 255, 255, 0.10);
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;

    background:
        radial-gradient(circle at top, rgba(42, 174, 199, 0.25), transparent 35%),
        linear-gradient(135deg, #05070d, #0b0f1a);

    color: var(--text);
}


.register-container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-card {
    width: 100%;
    max-width: 420px;
    background: rgba(16, 19, 28, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.logo img {
    width: 210px;
    max-width: 85%;
    height: auto;
}

.register-title {
    text-align: center;
    margin-bottom: 28px;
}

.register-title h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.register-title p {
    color: var(--muted);
    font-size: 15px;
}

#registerForm {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #e9ecf5;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 16px;
}

.input-group input::placeholder {
    color: #747b8c;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 174, 199, 0.15);
}

.password-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-box input {
    width: 100%;
    padding-right: 50px;
}


.privacy-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 10px;
}


.password-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9da4b5;
    font-size: 18px;
    cursor: pointer;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.password-box button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-50%);
    box-shadow: none;
}

#registerForm > button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

#registerForm > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(42, 174, 199, 0.28);
}

.login-text {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.login-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.login-text a:hover {
    text-decoration: underline;
}

.alert {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
}

.alert.error {
    background: rgba(255, 65, 65, 0.13);
    border: 1px solid rgba(255, 65, 65, 0.25);
    color: #ffb6b6;
}

.alert.success {
    background: rgba(42, 174, 199, 0.13);
    border: 1px solid rgba(42, 174, 199, 0.25);
    color: #9cecff;
}

@media (max-width: 480px) {

    body {
        min-height: 100dvh;
        height: auto;
        overflow-y: auto;
    }

    .register-container {
        min-height: 100dvh;
        height: auto;
        padding: 12px;
        align-items: flex-start;
    }

    .register-card {
        margin: 12px 0;
        padding: 22px 18px;
        max-height: none;
        overflow: visible;
    }

    .logo {
        margin-bottom: 14px;
    }

    .logo img {
        width: 150px;
    }

    .register-title {
        margin-bottom: 18px;
    }

    .register-title h1 {
        font-size: 24px;
    }

    .register-title p {
        font-size: 14px;
    }

    #registerForm {
        gap: 12px;
    }

    .input-group {
        gap: 6px;
    }

    .input-group input {
        padding: 13px;
        font-size: 16px;
    }

    .login-text {
        margin-top: 16px;
    }
}