:root {
    --primary: #ef233c;
    --primary-dark: #cf1830;
    --primary-light: #ff455b;

    --dark: #111521;
    --dark-secondary: #1a2030;

    --text: #1c2230;
    --muted: #7a8191;

    --border: #e3e6ed;
    --background: #f6f7fb;
    --white: #ffffff;

    --shadow:
        0 24px 70px rgba(23, 29, 45, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
    linear-gradient(
        rgba(248, 249, 252, 0.58),
        rgba(248, 249, 252, 0.72)
    ),
    url("../img/bg.png") center center / cover no-repeat fixed;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* Header */

.header {
    height: 80px;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(220, 223, 231, 0.9);
    box-shadow: 0 3px 20px rgba(30, 36, 50, 0.04);

    backdrop-filter: blur(12px);
}

.header-container {
    width: min(1280px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-flex;
    align-items: center;
}

.header-logo img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 320px;
    object-fit: contain;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-navigation a {
    color: #333946;

    font-size: 14px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.header-navigation a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.navigation-separator {
    width: 1px;
    height: 22px;
    background: #d8dbe2;
}

/* Main */

.main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 55px;
}

.mail-layout {
    min-height: 720px;

    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);

    overflow: hidden;

    background: var(--white);
    border: 1px solid rgba(226, 229, 236, 0.85);
    border-radius: 25px;
    box-shadow: var(--shadow);
}

/* Login */

.login-panel {
    position: relative;
    z-index: 2;

    padding: 58px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fdfdfe 100%
        );
}

.login-logo {
    margin-bottom: 20px;
    text-align: center;
}

.login-logo img {
    display: block;
    width: auto;
    height: 105px;
    max-width: 360px;
    margin: 0 auto;
    object-fit: contain;
}

.login-heading {
    margin-bottom: 34px;
    text-align: center;
}

.login-heading h1 {
    margin-bottom: 10px;

    color: #171b26;

    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-heading p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #343a48;

    font-size: 13px;
    font-weight: 800;
}

.email-field,
.password-field {
    position: relative;
}

.email-field {
    display: flex;
}

.email-field input {
    padding-right: 120px;
}

.email-domain {
    position: absolute;
    top: 50%;
    right: 17px;

    color: #626979;

    font-size: 13px;
    font-weight: 700;

    transform: translateY(-50%);
    pointer-events: none;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 57px;
    padding: 0 17px;

    color: var(--text);
    background: #fbfcfe;

    border: 1px solid #d7dbe5;
    border-radius: 11px;
    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #a5abb7;
}

input:focus {
    background: #ffffff;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(239, 35, 60, 0.1);
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.password-label a {
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.password-label a:hover {
    text-decoration: underline;
}

.password-field input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #575f70;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;

    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--primary);
    background: #fff0f2;
}

.password-toggle svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.remember {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #687080;

    font-size: 13px;
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;

    accent-color: var(--primary);
}

.login-button {
    width: 100%;
    height: 57px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    border: 0;
    border-radius: 11px;

    box-shadow:
        0 12px 28px rgba(239, 35, 60, 0.27);

    cursor: pointer;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-button:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    box-shadow:
        0 16px 34px rgba(239, 35, 60, 0.34);

    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.register-link {
    margin-top: 33px;
    padding-top: 29px;

    border-top: 1px solid var(--border);
    text-align: center;
}

.register-link p {
    margin-bottom: 8px;

    color: var(--muted);
    font-size: 13px;
}

.register-link a {
    color: var(--primary);

    font-size: 14px;
    font-weight: 800;
}

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

/* Alerts */

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    color: #a41325;
    background: #fff0f2;
    border: 1px solid #ffcbd1;
}

.alert-success {
    color: #166534;
    background: #eefbf3;
    border: 1px solid #bbebcc;
}

/* Hero */

.hero-panel {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(65, 73, 98, 0.48),
            transparent 43%
        ),
        linear-gradient(
            135deg,
            #0e121c 0%,
            #151b29 55%,
            #222a3b 100%
        );

    color: #ffffff;
}

.hero-panel::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.15;

    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.06) 50%,
            transparent 70%
        );

    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    top: -190px;
    right: -170px;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-decoration::before,
.hero-decoration::after {
    content: "";

    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-decoration::before {
    inset: 60px;
}

.hero-decoration::after {
    inset: 125px;
}

.hero-content {
    position: relative;
    z-index: 3;

    width: 62%;
    max-width: 610px;
    padding: 70px 0 70px 68px;
}

.hero-badge {
    display: inline-flex;

    margin-bottom: 27px;
    padding: 9px 17px;

    color: #ffffff;
    background: rgba(224, 19, 52, 0.65);

    border: 1px solid rgba(255, 92, 113, 0.43);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-content h2 {
    margin-bottom: 24px;

    color: #ffffff;

    font-size: clamp(42px, 4.4vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 530px;
    margin-bottom: 31px;

    color: rgba(255, 255, 255, 0.73);

    font-size: 17px;
    line-height: 1.8;
}

.hero-description strong {
    color: #ffffff;
}

.register-button {
    min-height: 55px;
    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #fa4056
        );

    border-radius: 11px;

    box-shadow:
        0 14px 32px rgba(239, 35, 60, 0.28);

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(239, 35, 60, 0.37);
}

.register-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.feature-list {
    margin-top: 41px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--primary-light);

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.feature-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.feature div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.feature span {
    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;
    line-height: 1.5;
}

/* Mail graphic */

.mail-image-wrapper {
    position: absolute;
    z-index: 2;
    right: 2%;
    bottom: 6%;

    width: 43%;
    max-width: 480px;

    pointer-events: none;
}

.mail-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 30px 45px rgba(0, 0, 0, 0.42));
}

/* Footer */

.footer {
    padding: 0 0 35px;
}

.footer-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    color: #858b98;

    font-size: 12px;
}

.footer nav {
    display: flex;
    align-items: center;
    gap: 23px;
}

.footer a:hover {
    color: var(--primary);
}

/* Responsive */

@media (max-width: 1100px) {
    .mail-layout {
        grid-template-columns: 390px minmax(0, 1fr);
    }

    .login-panel {
        padding: 50px 38px;
    }

    .hero-content {
        width: 73%;
        padding-left: 48px;
    }

    .mail-image-wrapper {
        opacity: 0.5;
        right: -9%;
    }
}

@media (max-width: 900px) {
    .main {
        padding-top: 35px;
    }

    .mail-layout {
        grid-template-columns: 1fr;
    }

    .login-panel {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;

        padding: 50px;
    }

    .hero-panel {
        min-height: 620px;
    }

    .hero-content {
        width: 75%;
        padding: 60px;
    }

    .mail-image-wrapper {
        width: 48%;
        opacity: 0.6;
    }
}

@media (max-width: 650px) {
    .header {
        height: 70px;
    }

    .header-container,
    .main,
    .footer-container {
        width: min(100% - 24px, 1280px);
    }

    .header-logo img {
        height: 39px;
        max-width: 170px;
    }

    .header-navigation {
        gap: 13px;
    }

    .navigation-separator,
    .header-navigation a:last-child {
        display: none;
    }

    .main {
        padding: 20px 0 35px;
    }

    .mail-layout {
        border-radius: 17px;
    }

    .login-panel {
        padding: 39px 22px;
    }

    .login-logo img {
        height: 55px;
        max-width: 210px;
    }

    .login-heading h1 {
        font-size: 27px;
    }

    .hero-panel {
        min-height: 600px;
    }

    .hero-content {
        width: 100%;
        padding: 45px 25px;
    }

    .hero-content h2 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 15px;
    }

    .mail-image-wrapper {
        right: -14%;
        bottom: 1%;

        width: 75%;
        opacity: 0.22;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* =========================================================
   Rejestracja
   ========================================================= */

.register-main {
    padding-top: 45px;
}

.register-layout {
    grid-template-columns: 520px minmax(0, 1fr);
    min-height: 790px;
}

.register-panel {
    position: relative;
    z-index: 2;

    padding: 45px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fdfdfe 100%
        );
}

.register-logo {
    margin-bottom: 18px;
}

.register-logo img {
    height: 72px;
    max-width: 280px;
}

.register-heading {
    margin-bottom: 26px;
}

.register-heading h1 {
    font-size: 29px;
}

.register-heading strong {
    color: var(--primary);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.register-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

input[type="email"] {
    width: 100%;
    height: 57px;
    padding: 0 17px;

    color: var(--text);
    background: #fbfcfe;

    border: 1px solid #d7dbe5;
    border-radius: 11px;
    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input[type="email"]::placeholder {
    color: #a5abb7;
}

input[type="email"]:focus {
    background: #ffffff;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(239, 35, 60, 0.1);
}

.field-message {
    color: #8a909d;

    font-size: 11px;
    line-height: 1.5;
}

.field-message.field-error {
    color: var(--primary);
}

.password-strength {
    margin-top: -4px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strength-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background: #eceef3;
    border-radius: 999px;
}

.strength-bar span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.strength-weak {
    background: #ef233c;
}

.strength-medium {
    background: #f59e0b;
}

.strength-strong {
    background: #16a34a;
}

.password-strength > span {
    color: #858b98;

    font-size: 11px;
    line-height: 1.4;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #697080;

    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.agreement input {
    flex: 0 0 17px;

    width: 17px;
    height: 17px;
    margin-top: 1px;

    accent-color: var(--primary);
}

.agreement a {
    color: var(--primary);
    font-weight: 700;
}

.agreement a:hover {
    text-decoration: underline;
}

.register-submit {
    margin-top: 3px;
}

.register-submit svg {
    stroke-width: 2.3;
}

.register-hero-content {
    width: 64%;
}

.email-preview {
    width: fit-content;
    max-width: 100%;

    margin: 4px 0 33px;
    padding: 14px 18px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;

    backdrop-filter: blur(8px);
}

.email-preview span {
    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.email-preview strong {
    overflow-wrap: anywhere;

    color: #ffffff;

    font-size: 18px;
}

.register-features {
    margin-top: 0;
}

.register-mail-image {
    right: 0;
    bottom: 7%;

    width: 39%;
}

@media (max-width: 1100px) {
    .register-layout {
        grid-template-columns: 470px minmax(0, 1fr);
    }

    .register-panel {
        padding: 45px 38px;
    }

    .register-hero-content {
        width: 74%;
    }
}

@media (max-width: 900px) {
    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-panel {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        padding: 50px;
    }

    .register-hero {
        min-height: 620px;
    }

    .register-hero-content {
        width: 78%;
    }
}

@media (max-width: 650px) {
    .register-main {
        padding-top: 20px;
    }

    .register-panel {
        padding: 38px 22px;
    }

    .register-logo img {
        height: 62px;
        max-width: 240px;
    }

    .register-heading h1 {
        font-size: 26px;
    }

    .register-password-grid {
        grid-template-columns: 1fr;
    }

    .register-hero-content {
        width: 100%;
    }

    .register-mail-image {
        width: 72%;
        right: -16%;
        opacity: 0.2;
    }
}