:root {
    --orange: #FF6D00;
    --dark-orange: #E65100;
    --light-orange: #FFE0B2;
    --orange-glow: rgba(255, 109, 0, 0.3);
    --text-dark: #2D2D2D;
    --text-light: #FFFFFF;
    --text-muted: #6b6b6b;
    --danger: #d32f2f;
    --success: #2e7d32;
    --info: #0288d1;
    --warning: #ed6c02;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-orange: 0 8px 32px rgba(255, 109, 0, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Анимированные элементы фона */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: -50px;
    animation-delay: -10s;
    animation-duration: 30s;
}

.wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    z-index: 1;
}

.card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    animation: gradientShift 3s ease infinite;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.dot-2 {
    bottom: 20px;
    left: 20px;
    animation-delay: 1s;
}

.decoration-line {
    position: absolute;
    top: 50%;
    left: -100px;
    right: -100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 109, 0, 0.1),
        rgba(255, 109, 0, 0.2),
        rgba(255, 109, 0, 0.1),
        transparent
    );
    transform: translateY(-50%);
}

/* Brand section */
.brand {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
    box-shadow: 0 12px 40px rgba(255, 109, 0, 0.3);
    position: relative;
    transition: transform var(--transition-bounce);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--orange-glow);
    filter: blur(20px);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

.brand-text {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
}

.lead {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.email-strength {
    margin-top: 20px;
    animation: slideUp 0.5s ease;
}

.strength-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
    width: 0%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.strength-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Input field */
.input-container {
    margin-bottom: 32px;
    animation: slideUp 0.6s ease 0.2s both;
}

.input-field {
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.field-label i {
    color: var(--orange);
    font-size: 16px;
    width: 20px;
}

.required-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: normal;
    color: var(--orange);
    background: rgba(255, 109, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.input-wrapper {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

input[type="email"] {
    width: 100%;
    padding: 20px 52px 20px 20px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition-normal);
}

input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-normal);
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--orange);
    transform: translateY(-50%) scale(1.1);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.input-wrapper:focus-within .input-line {
    transform: scaleX(1);
}

.input-hints {
    margin-top: 10px;
    min-height: 24px;
}

.hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    animation: slideDown 0.3s ease;
}

.hint i {
    font-size: 14px;
}

.hint-email {
    color: var(--success);
    background: rgba(46, 125, 50, 0.1);
}

.hint-error {
    color: var(--danger);
    background: rgba(211, 47, 47, 0.1);
}

/* Progress container */
.progress-container {
    margin: 24px 0;
    animation: slideUp 0.5s ease;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.progress-percent {
    font-weight: 700;
    color: var(--orange);
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Messages */
.message {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: messageAppear 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.1;
    z-index: -1;
}

.error {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(211, 47, 47, 0.05));
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.success {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
    border-left: 4px solid var(--success);
    color: var(--success);
}

.message i {
    margin-right: 10px;
    font-size: 16px;
}

/* Submit button */
.submit {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    color: white;
    font-weight: 700;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    animation: slideUp 0.6s ease 0.3s both;
}

.submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.submit:hover:not(:disabled)::before {
    left: 100%;
}

.submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
}

.submit:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-content, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.submit.loading .btn-content {
    opacity: 0;
}

.submit.loading .btn-loading {
    opacity: 1;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    animation: pulse 2s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.submit:not(:disabled):hover .btn-glow {
    opacity: 1;
}

/* Alternative actions */
.alternative-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    animation: slideUp 0.6s ease 0.4s both;
}

.alt-action {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.alt-action:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Footer link */
.footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideUp 0.6s ease 0.5s both;
}

.animated-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    overflow: hidden;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.animated-link:hover .link-underline {
    transform: translateX(0);
}

.animated-link:hover i {
    animation: arrowBounce 0.6s ease;
}

/* Info cards */
.info-cards {
    display: grid;
    gap: 16px;
    margin-top: 32px;
    animation: slideUp 0.6s ease 0.6s both;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.info-card:hover::before {
    transform: translateX(0);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.1), rgba(255, 109, 0, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 20px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Countdown */
.countdown-container {
    text-align: center;
    margin-top: 32px;
    animation: slideUp 0.6s ease;
}

.countdown-circle {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-track {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 4;
}

.countdown-progress {
    fill: none;
    stroke: var(--orange);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}

.countdown-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, 0) rotate(180deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(270deg);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    }
    50% {
        background: linear-gradient(90deg, var(--dark-orange), var(--orange));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-4px);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .wrap {
        padding: 20px;
    }
    
    .card {
        padding: 32px 24px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .title-sub {
        font-size: 22px;
    }
    
    .lead {
        font-size: 15px;
    }
    
    input[type="email"] {
        padding: 18px 48px 18px 18px;
        font-size: 15px;
    }
    
    .submit {
        padding: 18px;
        font-size: 16px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    
    .logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .title-main {
        font-size: 24px;
    }
    
    .title-sub {
        font-size: 20px;
    }
    
    .alternative-actions {
        flex-direction: column;
    }
    
    .brand {
        margin-bottom: 32px;
    }
}