.forgot-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Forgot Password Card */
.forgot-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.forgot-header {
    background: linear-gradient(135deg, #1fa3b7 0%, #0d7c8a 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.forgot-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.icon-wrapper i {
    font-size: 45px;
    background: linear-gradient(135deg, #1fa3b7, #0d7c8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forgot-header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.forgot-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Form Section */
.forgot-body {
    padding: 40px 30px;
}

.instruction-box {
    background: #e0f2f7;
    border-left: 4px solid #1fa3b7;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.instruction-box i {
    color: #1fa3b7;
    font-size: 20px;
    margin-right: 10px;
}

.instruction-box p {
    margin: 0;
    color: #0d7c8a;
    font-size: 14px;
    line-height: 1.6;
}

.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1fa3b7;
    font-size: 18px;
    z-index: 2;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.form-control {
    padding: 14px 20px 14px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #1fa3b7;
    box-shadow: 0 0 0 0.2rem rgba(31, 163, 183, 0.15);
    background: white;
}

.form-control:focus + .input-icon {
    color: #0d7c8a;
    transform: translateY(-50%) scale(1.1);
}

/* Reset Button */
.btn-reset {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1fa3b7 0%, #0d7c8a 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 163, 183, 0.3);
}

.btn-reset::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn-reset:hover::before {
    left: 100%;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 163, 183, 0.4);
}

.btn-reset:active {
    transform: translateY(0);
}

/* Loading State */
.btn-reset.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-reset .spinner {
    display: none;
}

.btn-reset.loading .spinner {
    display: inline-block;
    margin-right: 10px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* Back to Login */
.back-link {
    text-align: center;
    margin-top: 25px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #1fa3b7;
    border-radius: 12px;
    color: #1fa3b7;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #1fa3b7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 163, 183, 0.3);
}

.btn-back i {
    font-size: 18px;
}

/* Alert Messages */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-state.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 40px;
    color: #065f46;
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .forgot-header {
        padding: 30px 20px;
    }

    .forgot-header h1 {
        font-size: 24px;
    }

    .forgot-body {
        padding: 30px 20px;
    }

    .icon-wrapper {
        width: 75px;
        height: 75px;
    }

    .icon-wrapper i {
        font-size: 38px;
    }
}
