:root {
    --my-blue: #c8d4fa;
    --my-purple: #afc0f1;
    --welcome-text-color: #616580;
    --fade-from-green: #c4f8dc;
    --fade-to-blue: #c8d4fa;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
/*    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    background: linear-gradient(135deg, var(--fade-from-green) 0%, var(--fade-to-blue) 100%);
    background-color: var(--my-blue);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.signup-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 1rem;
}

.logo {
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 1.4rem;
}

.logo h1 {
    color: #667eea;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 1.1rem;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0.2rem;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 9px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 50%;
    /*    margin-left: 6rem;*/
    padding: 14px;
    background: linear-gradient(135deg, var(--fade-to-blue) 0%, var(--fade-from-green) 100%);
    color: var(--welcome-text-color);
    border-color: #9a9fb6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.phone-hint {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
/*----------------- Next page ------------------*/
.welcome-banner {
    background: linear-gradient(135deg, var(--fade-to-blue) 0%, var(--fade-from-green) 100%);
    /*    color: white;*/
    color: var(--welcome-text-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.welcome-banner h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}
.welcome-banner h2 {
    font-size: 1.5rem;
    /*    font-style: italic;*/
    margin-bottom: 5px;
}
.welcome-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-section {
    margin-bottom: 1rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
}

.section-number {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 13px;
}

.password-requirements h4 {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
}

.password-requirements li {
    color: #666;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements li::before {
    content: "○";
    color: #ccc;
}

.password-requirements li.valid::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
}

.password-wrapper {
    position: relative;
}

.info-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}
/*----------------- Last page ------------------*/
.error-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    /*    margin-bottom: 15px;*/
}

.error-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-details {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.error-details p {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.error-details p:last-child {
    margin-bottom: 0;
}

.error-details strong {
    color: #e74c3c;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fade-from-green) 0%, var(--fade-to-blue) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.help-text {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
    color: #666;
    font-size: 14px;
}

.help-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}
.skip-btn-area {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 0rem;
}
.skip-btn-area p {
    font-size: 1.4rem;
    font-style: italic;
}


/* pop-in animation for .signup-container (0.5s) */
.signup-container {
/*    animation: pop-in 0.8s ease-in both;*/
    animation: pop-in 0.8s cubic-bezier(0.7, 0.9, 0.3, 1.2);
    transform-origin: center;
}

@keyframes pop-in {
    0% {
    /*        opacity: 0;*/
        transform: translateY(15px) scale(0.9);
    }
    100% {
    /*        opacity: 1;*/
        transform: translateY(0) scale(1);
    }
}

/* Shrink from normal to nothing */
.shrink {
    animation-name: shrink;
    animation-duration: 0.8s;
    animation-timing-function: ease-in;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: center;
}
@keyframes shrink {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

