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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
}

.container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    width: 100%;
    max-width: 520px;
    padding: 48px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.apple-logo {
    width: 56px;
    height: 56px;
    color: #ff3b30;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255, 59, 48, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.5;
}

.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    color: #ff3b30;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 8px rgba(255, 59, 48, 0.5));
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

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

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

label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    border-color: #ff3b30;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2),
                0 8px 24px rgba(255, 59, 48, 0.15);
    transform: translateY(-2px);
}

input::placeholder {
    color: #86868b;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-left: 4px;
}

.requirement {
    font-size: 12px;
    color: #86868b;
    transition: color 0.2s ease;
}

.requirement.met {
    color: #ff3b30;
}

.requirement.met::before {
    content: "✓ ";
    font-weight: 600;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.link:hover {
    opacity: 0.8;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.6) 0%, rgba(230, 52, 42, 0.5) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
    text-shadow: none;
}

.submit-btn:not(:disabled) {
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.5);
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: rgba(255, 59, 48, 0.3);
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
    transform: none;
    color: rgba(255, 255, 255, 0.6);
}

.download-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.download-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.download-btn:hover {
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

.social-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex: 1;
    justify-content: center;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    color: #fff;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.5);
}

.telegram-btn {
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    color: #fff;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.5);
}

.social-btn:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Error states */
input.error {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

input.error:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2);
}

.error-message {
    font-size: 12px;
    color: #ff3b30;
    margin-top: 6px;
    padding-left: 4px;
    display: none;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.error-message.show {
    display: block;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state */
input.success {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.9);
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
    animation: successPulse 0.6s ease;
}

.success-icon svg {
    width: 48px;
    height: 48px;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-details-section .detail-item {
    padding: 10px 14px;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 59, 48, 0.4);
}

.success-close-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.success-close-btn:hover {
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.5);
}

.success-close-btn:active {
    transform: translateY(0);
}

/* Success Page Styles */
.success-page {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    padding: 36px;
}

.success-page .header {
    margin-bottom: 24px;
}

.success-icon-large {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
    animation: successPulse 0.6s ease;
}

.success-icon-large svg {
    width: 40px;
    height: 40px;
}

.success-page h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.success-page .subtitle {
    font-size: 14px;
}

.success-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.success-action-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff3b30 0%, #e6342a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-action-btn:hover {
    background: linear-gradient(135deg, #e6342a 0%, #d32f26 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.5);
}

.success-action-btn:active {
    transform: translateY(0);
}

.success-action-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.success-action-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
        border-radius: 20px;
    }

    h1 {
        font-size: 26px;
    }

    .apple-logo {
        width: 48px;
        height: 48px;
    }

    .features {
        gap: 12px;
        padding: 20px 0;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-text {
        font-size: 12px;
    }

    .social-section {
        flex-direction: column;
        gap: 10px;
    }

    .social-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 14px 18px;
        font-size: 15px;
    }

    .submit-btn,
    .download-btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .success-modal-content {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .success-icon svg {
        width: 36px;
        height: 36px;
    }

    .success-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .success-details {
        gap: 16px;
        margin-bottom: 24px;
    }

    .detail-item {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-value {
        font-size: 14px;
        width: 100%;
    }

    .success-icon-large {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .success-icon-large svg {
        width: 48px;
        height: 48px;
    }

    .success-details-section {
        margin: 24px 0;
        gap: 12px;
    }

    .success-actions {
        margin-top: 24px;
    }

    .success-action-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}
