﻿
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: url('../assets/bg2.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e53935;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

body {
    justify-content: flex-start;
}

.top-bar {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 24px;
    z-index: 2;
}

.logo-top-left {
    position: static;
    top: 0;
    left: 0;
    height: 12vw;
    max-height: 140px;
    min-height: 60px;
    width: auto;
    max-width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: none;
    margin-bottom: 0;
    margin-top: -30px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
/* .logo-spacer {
          height: 2%;
          width: 100%;
        } */
.logo-top-right {
    position: relative;
    height: 8vw;
    max-height: 100px;
    min-height: 40px;
    width: auto;
    max-width: 180px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    margin-bottom: 0;
}

.logo-main {
    width: 320px;
    max-width: 90vw;
    display: block;
    margin: 0 auto 8px auto;
}

.subtitle {
    text-align: center;
    color: #333;
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 30px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: fit-content;
}

.form-container {
    background: rgba(255,255,255,0.97);
    max-width: 420px;
    width: 80vw;
    margin: 0 auto 80px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 36px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.form-title {
    color: #e53935;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.form-subtitle {
    color: #333;
    font-size: 1.05rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 36px;
}

.form-row {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 400;
}

    .form-row svg, .form-row img.icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        opacity: 0.7;
    }

.form-input, .form-select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f7fafd;
    color: #333;
    outline: none;
    transition: border 0.2s;
    font-weight: 400;
}

    .form-input:focus, .form-select:focus {
        border: 1.5px solid #e53935;
        background: #fff;
    }

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23979797" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
}

.confirm-btn {
    width: 100%;
    background: #e53935;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,151,169,0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

    .confirm-btn:hover {
        background: #007c8a;
        box-shadow: 0 6px 18px rgba(0,151,169,0.18);
    }

.error-message {
    color: #e53935;
    font-size: 1rem;
    text-align: center;
    margin-top: 12px;
    min-height: 24px;
}

.footer {
    width: 100vw;
    background: #fff;
    padding: 10px 0 6px 0;
    text-align: center;
    font-size: 0.95rem;
    color: #0097a9;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    flex-wrap: wrap;
    flex-direction: row;
    flex-flow: row wrap;
    margin-top: auto;
    position: relative;
}

    .footer span {
        display: inline-block;
        min-width: 180px;
        margin: 0 10px;
        white-space: nowrap;
    }

    .footer a {
        color: #0097a9;
        text-decoration: underline;
        font-weight: 400;
    }

.header-info {
    display: flex;
    gap: 40px;
    /* align-items: flex-end; */
    margin: 0 0 24px 0;
    justify-content: space-between;
}

.header-info-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-info-text-main {
    color: #e53935;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.header-info-text-sub {
    color: #6a6a6a;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.1;
}

.header-info-text-main.blue {
    color: #0097a9;
}

.register-header-block {
    max-width: fit-content;
    margin: 0 auto;
    height: fit-content;
    position: relative;
}

.invitation-text {
    font-size: 1.15rem;
    color: #6a6a6a;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 18px;
    width: 100%;
    max-width: 700px;
    font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 900px) {
    .top-bar {
        max-width: 98vw;
        padding: 12px 2vw 0 2vw;
    }

    .center-content {
        max-width: 98vw;
        margin: 40px auto 0 auto;
        max-height: 40vh;
    }

    .logo-top-right {
        width: 120px;
    }
}

@media (max-width: 600px) {
    .top-bar {
        gap: 8px;
        padding-top: 8px;
    }

    .logo-top-left {
        height: 20vw;
        max-height: 90px;
        min-height: 40px;
        max-width: 120px;
        width: auto;
        padding: 4px 8px 4px 8px;
    }

    .logo-top-right {
        height: 12vw;
        max-height: 60px;
        min-height: 24px;
        max-width: 90px;
        width: auto;
    }

    .center-content {
        width: auto;
        max-width: 100%;
        margin: 40px 20px 20px 20px;
        min-height: 40vh;
        max-height: 70vh;
    }

    .register-header-block {
        margin: 0 30px;
    }

    .header-info {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .footer {
        width: 100%;
        margin: 15px 0 0 0;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.65rem;
        padding: 6px 0 2px 0;
        position: relative;
        bottom: 0;
    }

        .footer span {
            min-width: 0;
            width: 100%;
            margin: 2px 0;
            text-align: center;
            white-space: normal;
            font-size: 0.7rem;
        }
}

.city-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .city-bottom img {
        width: 40vw;
        max-width: 600px;
        min-width: 120px;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

@media (max-width: 900px) {
    .city-bottom img {
        width: 60vw;
        max-width: 90vw;
        min-width: 80px;
    }
}

@media (max-width: 600px) {
    .city-bottom img {
        width: 90vw;
        max-width: 100vw;
        min-width: 60px;
    }
}


