:root {
    --isu-green: #2563eb;
    --isu-light-green: #2563eb;
    --isu-gold: #dbeafe;
    --isu-dark-gold: #60a5fa;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--isu-green) 0%, var(--isu-light-green) 50%, #1e4d3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E") repeat;
    opacity: 0.1;
    z-index: 0;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    bottom: 10%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Back to Login */
.back-login {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-login:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

/* Main Container */
.recovery-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 2rem;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.recovery-header {
    background: linear-gradient(135deg, var(--isu-green) 0%, var(--isu-light-green) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recovery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.recovery-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-light);
    border: 4px solid var(--isu-gold);
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.recovery-icon i {
    font-size: 2rem;
    color: var(--isu-green);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.recovery-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.recovery-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Body */
.recovery-body {
    padding: 2.5rem 2rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--isu-green);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.step.completed+.step .step-line {
    background: var(--success);
}

/* Recovery Methods */
.recovery-methods {
    display: none;
}

.recovery-methods.active {
    display: block;
}

.method-selection {
    margin-bottom: 2rem;
}

.method-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--isu-green);
    margin-bottom: 1rem;
    text-align: center;
}

.method-options {
    display: grid;
    gap: 1rem;
}

.method-option {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
}

.method-option:hover {
    border-color: var(--isu-green);
    background: rgba(26, 95, 63, 0.05);
}

.method-option.selected {
    border-color: var(--isu-green);
    background: rgba(26, 95, 63, 0.1);
}

.method-option input[type="radio"] {
    display: none;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--isu-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.method-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.method-info p {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.method-description {
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Form Styles */
.recovery-form {
    display: none;
}

.recovery-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--isu-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 95, 63, 0.1);
}

.form-input.error {
    border-color: var(--danger);
    background: #fff5f5;
}

.form-input.success {
    border-color: var(--success);
    background: #f0fff4;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-input:focus+.form-icon {
    color: var(--isu-green);
}

/* OTP Input */
.otp-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light-gray);
}

.otp-input:focus {
    outline: none;
    border-color: var(--isu-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 95, 63, 0.1);
}

.otp-input.filled {
    border-color: var(--success);
    background: #f0fff4;
}

/* Timer */
.timer-container {
    text-align: center;
    margin: 1rem 0;
}

.timer {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--isu-green);
}

.timer.expired {
    color: var(--danger);
}

.resend-link {
    color: var(--isu-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.resend-link:hover {
    color: var(--isu-light-green);
    text-decoration: underline;
}

.resend-link.disabled {
    color: var(--medium-gray);
    cursor: not-allowed;
    text-decoration: none;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.message.show {
    display: flex;
}

.message.error {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #fed7d7;
}

.message.success {
    background: #f0fff4;
    color: var(--success);
    border: 1px solid #9ae6b4;
}

.message.info {
    background: #e6f3ff;
    color: var(--info);
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn::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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--isu-green), var(--isu-light-green));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn.loading {
    pointer-events: none;
}

.btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

.btn.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Container */
.button-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-container .btn {
    flex: 1;
}

/* Success Screen */
.success-screen {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.success-screen.active {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--isu-green);
    margin-bottom: 1rem;
}

.success-text {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Security Tips */
.security-tips {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.security-tips h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--isu-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.security-tips li i {
    color: var(--success);
    margin-top: 0.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recovery-container {
        margin: 1rem;
        max-width: 400px;
    }

    .recovery-header,
    .recovery-body {
        padding: 2rem 1.5rem;
    }

    .otp-container {
        gap: 0.5rem;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .button-container {
        flex-direction: column;
    }

    .back-login {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        display: inline-flex;
    }
}

@media (max-width: 480px) {

    .recovery-header,
    .recovery-body {
        padding: 1.5rem 1rem;
    }

    .method-option {
        padding: 1rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}