:root {
    --bg-start: #2d1b59;
    --bg-middle: #493184;
    --bg-end: #6555ad;

    --card-bg: #44356f;
    --card-bg-light: #564587;

    --primary-purple: #8b5cf6;
    --primary-blue: #4f6df5;
    --primary-cyan: #22c7d9;

    --text-main: #ffffff;
    --text-muted: #d7d1e8;

    --border-color: rgba(255, 255, 255, 0.2);
    --border-radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: var(--text-main);

    background:
        radial-gradient(
            circle at top left,
            rgba(173, 86, 255, 0.4),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(52, 109, 255, 0.4),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            var(--bg-start),
            var(--bg-middle),
            var(--bg-end)
        );
}

.mobile-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: rgba(68, 53, 111, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 22px;

    box-shadow:
        0 16px 35px rgba(24, 10, 60, 0.3);
}

.primary-button {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;

    color: white;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    background: linear-gradient(
        90deg,
        var(--primary-cyan),
        var(--primary-blue),
        var(--primary-purple)
    );

    box-shadow:
        0 10px 24px rgba(91, 70, 220, 0.35);
}

.primary-button:hover {
    transform: translateY(-1px);
}

a {
    color: #79e5ee;
}

.header-actions{

    display:flex;
    align-items:center;
    gap:12px;

}

.notification-button{

    position:relative;

    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:white;
    text-decoration:none;
    font-size:20px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.18);

    transition:.2s;

}

.notification-button:hover{

    transform:translateY(-2px);

}

.notification-badge{

    position:absolute;

    top:2px;
    right:2px;

    min-width:18px;
    height:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#ff5b7a;

    color:white;

    font-size:10px;
    font-weight:700;

}

.login-logo {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 40px;
}

.login-logo img {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;

    filter: drop-shadow(0 8px 20px rgba(91, 70, 220, 0.35));
}

.login-logo h1 {
    margin-top: 5px;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1px;
}

.login-logo p {
    margin-top: 8px;
    font-size: 20px;
    color: rgba(255,255,255,.85);
}

.login-alert {
    margin-bottom: 18px;
    padding: 13px 15px;

    border-radius: 12px;

    background: rgba(255, 82, 82, 0.12);

    color: #ff8797;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}

.card h2 {
    margin-bottom: 8px;
}

.card > p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #372b5c;
    color: white;
    outline: none;
}

.form-group input::placeholder {
    color: #aaa2c0;
}

.form-group input:focus {
    border-color: var(--primary-cyan);
}

/* PASSWORD + EYE BUTTON */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;
    border-radius: 10px;

    color: #aaa2c0;
    cursor: pointer;

    background: transparent;

    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--primary-cyan);
}

.password-toggle svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-text {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.register-text a {
    color: #79e5ee;
    text-decoration: none;
}

.register-header {
    position: relative;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.register-header img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.register-header h1 {
    margin-top: 8px;
    font-size: 30px;
}

.register-header p {
    margin-top: 6px;
    color: var(--text-muted);
}

.back-button {
    position: absolute;
    top: 10px;
    left: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background: var(--card-bg);
}

.register-card {
    margin-bottom: 30px;
}

.input-note {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.login-text {
    margin-top: 22px;
    margin-bottom: 0 !important;
    text-align: center;
    font-size: 14px;
}

.login-text a {
    color: #79e5ee;
    font-weight: 600;
    text-decoration: none;
}

/* ======================================
   REGISTRATION SUCCESS MODAL
====================================== */

.success-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(20, 12, 45, 0.65);
    backdrop-filter: blur(8px);
}

.success-modal {
    width: 100%;
    max-width: 360px;

    padding: 30px 24px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #55428d,
            #40346f
        );

    box-shadow:
        0 24px 60px rgba(18, 8, 50, 0.45);
}

.success-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;

    color: white;
    font-size: 32px;
    font-weight: 800;

    background:
        linear-gradient(
            145deg,
            #28c8b7,
            #4f77ef,
            #9b4ff1
        );

    box-shadow:
        0 0 25px rgba(87, 103, 232, 0.55);
}

.success-modal h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.success-modal p {
    color: #d7d0e7;
    font-size: 13px;
    line-height: 1.55;

    margin-bottom: 22px;
}

.success-login-button {
    width: 100%;

    display: block;

    padding: 14px 18px;

    border-radius: 14px;

    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    background:
        linear-gradient(
            90deg,
            #22c5d7,
            #5274ef,
            #984ef4
        );

    box-shadow:
        0 10px 24px rgba(79, 67, 218, 0.35);
}

/* ===========================
   REGISTER ALERT
=========================== */

.register-alert{

    margin-bottom:18px;
    padding:14px 16px;

    border-radius:12px;

    background:rgba(255,82,82,.12);

    color:#ff7b8a;

    font-weight:600;

    text-align:center;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(-8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.form-group select {
    width: 100%;
    padding: 14px 45px 14px 15px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    background: rgba(25, 20, 70, 0.35);

    outline: none;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.form-group select:focus {
    border-color: #6b9cff;

    box-shadow:
        0 0 0 2px
        rgba(107, 156, 255, 0.12);
}

.form-group select option {
    color: #222222;
    background: #ffffff;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-arrow {
    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: #b8b4df;
    font-size: 16px;

    pointer-events: none;
}