@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #DA9F5B;
    --secondary: #33211D;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #FFFBF2;
    --dark: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    background: var(--light);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.content {
    padding: 30px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.completed .step-circle {
    background: var(--success);
    color: var(--white);
}

.step.active .step-circle {
    background: var(--primary);
    color: var(--white);
    border-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(218, 159, 91, 0.3);
}

.step-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
}

.input-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e8e4dc;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 159, 91, 0.2);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.password-toggle:hover {
    color: var(--primary);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(51, 33, 29, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fff2f2;
    color: var(--danger);
    border: 2px solid #ffcdd2;
}

.alert-success {
    background: #f0fff4;
    color: var(--success);
    border: 2px solid #c8e6c9;
}

.otp-input {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.otp-input input {
    flex: 1;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 5px;
    background: var(--white);
    border: 2px solid #e8e4dc;
    padding: 15px 0;
    color: var(--dark);
}

.otp-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 159, 91, 0.2);
}

.password-strength {
    height: 6px;
    background: #e8e4dc;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak {
    background: var(--danger);
    width: 33%;
}

.strength-medium {
    background: var(--warning);
    width: 66%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

.links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8e4dc;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.links a + a {
    margin-left: 15px;
}

.timer {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.timer.expired {
    color: var(--danger);
}

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--success);
    color: var(--light);
    padding: 18px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    opacity: 0;
    transform: translateX(100px);
}

.toast.show {
    animation: slideInRight 0.3s ease forwards;
}

.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast-icon {
    font-size: 22px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 14px;
    opacity: 0.9;
}

.password-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
}

.password-feedback i {
    font-size: 16px;
}

.valid {
    color: var(--success);
}

.invalid {
    color: var(--danger);
}

.email-sent {
    text-align: center;
    padding: 20px;
    background: #f0fff4;
    margin-bottom: 20px;
    border: 2px solid #c8e6c9;
}

.email-sent i {
    font-size: 40px;
    color: var(--success);
    margin-bottom: 15px;
}

.email-sent p {
    color: var(--dark);
    margin-bottom: 10px;
}