/* Registration Section */
.registration-section {
    background-color: #f0f0f0;
    min-height: calc(100vh - 121px);
    display: flex;
    justify-content: center;
    padding: 35px 0;
}

.registration-container {
    border-radius: 12px;
    padding: 0 40px;
    width: 100%;
    max-width: 322px;
    text-align: center;
}

/* Title */
.registration-title {
    font-size: 19px;
    font-weight: bold;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 0.4px;
}

/* Photo Upload */
.photo-upload {
    margin-bottom: 60px;
}

.photo-circle {
    width: 129px;
    height: 129px;
    margin: 0 auto 15px;
    position: relative;
}

.photo-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border: 2px solid #009dff;
    border-radius: 50%;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.photo-placeholder:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

.upload-text {
    display: block;
    color: #009dff;
    font-size: 19px;
    font-weight: bold;
    text-transform: lowercase;
    margin-top: 4px;
    letter-spacing: 0.4px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

/* Form Inputs - Более компактные и менее закругленные */
.form-input {
    width: 100%;
    padding: 8px 15px;
    border: 0 solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
    height: 28px;
}

.form-input:focus {
    border-color: #009dff;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
    color: #cacaca;
    font-weight: 400;
    text-align: center;
    font-size: 19px;
}

/* Date Inputs - Поля ввода даты как единый блок */
.date-inputs {
    display: flex;
    width: 100%;
    height: 28px;
    border: 0 solid #ddd;
    border-radius: 5px;
    background-color: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.date-inputs:focus-within {
    border-color: #009dff;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.date-input {
    flex: 1;
    padding: 8px 5px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    outline: none;
    text-align: center;
    height: 100%;
}

.date-input:focus {
    color: #333;
    background: transparent;
    border: none;
    box-shadow: none;
}

.date-input::placeholder {
    color: #cacaca;
    font-weight: 400;
    text-align: center;
    font-size: 19px;
}

/* Вертикальные разделители */
.date-input:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #ddd;
}

.date-input:not(:last-child) {
    position: relative;
    border-right: 1px solid #ddd;
}

/* Скрыть стрелки у number input */
.date-input::-webkit-outer-spin-button,
.date-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.date-input[type="number"] {
    -moz-appearance: textfield;
}

/* Terms Agreement */
.terms-agreement {
    margin: 40px 0 20px 0;
    font-size: 20px;
}

.terms-agreement p {
    font-size: 18px;
    color: #9e9e9e;
    line-height: 1.1;
}

.terms-link,
.privacy-link {
    font-size: 18px;
    color: #009dff;
    text-decoration: none;
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

/* Form Buttons */
.form-buttons {
    margin-top: 25px;
}

.btn-register {
    width: 100%;
    padding: 4px 0;
    background-color: #009dff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 19px;
    line-height: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.btn-register:hover {
    background-color: #009dff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.login-link {
    display: block;
    color: #009dff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #009dff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        margin: 20px;
        padding: 25px 20px;
        max-width: 320px;
    }

    .registration-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .photo-circle {
        width: 80px;
        height: 80px;
    }

    .form-input {
        padding: 7px 12px;
        font-size: 13px;
        height: 32px;
    }

    .date-inputs {
        height: 32px;
    }

    .date-input {
        padding: 6px 4px;
        font-size: 13px;
    }

    .terms-agreement {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .registration-container {
        margin: 15px;
        padding: 20px 15px;
    }

    .date-inputs {
        height: 30px;
    }

    .date-input {
        padding: 5px 3px;
        font-size: 12px;
    }
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}
