/* Page Container */
.forgot-password-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    animation: float 15s infinite alternate ease-in-out;
}

.shape-2 {
    top: 60%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    animation: float 18s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    top: 25%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    animation: float 20s infinite alternate ease-in-out;
}

.shape-4 {
    bottom: 10%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    animation: float 12s infinite alternate-reverse ease-in-out;
}

.shape-5 {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ffafbd, #ffc3a0);
    animation: float 22s infinite alternate ease-in-out;
}

.shape-6 {
    top: 15%;
    left: 30%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #834d9b, #d04ed6);
    animation: float 16s infinite alternate-reverse ease-in-out;
}

.shape-7 {
    bottom: 20%;
    left: 25%;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #42275a, #734b6d);
    animation: float 17s infinite alternate ease-in-out;
}

.shape-8 {
    bottom: 30%;
    right: 5%;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #3a7bd5, #3a6073);
    animation: float 19s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(15deg);
    }
}

.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 100%);
    mix-blend-mode: overlay;
}

.aurora-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.03) 0%,
        rgba(0,212,255,0.03) 25%, 
        rgba(45,175,230,0.05) 50%, 
        rgba(9,9,121,0.05) 75%, 
        rgba(2,0,36,0.07) 100%);
    animation: aurora 15s infinite linear;
    transform-origin: center;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.forgot-password-hero {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0061ff, #60efff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
    box-shadow: 0 15px 35px rgba(0, 97, 255, 0.3);
}

.hero-icon i {
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.icon-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: ringPulse 2s infinite;
}

.ring-2 {
    width: 120%;
    height: 120%;
    animation: ringPulse 2s infinite 0.5s;
}

.ring-3 {
    width: 140%;
    height: 140%;
    animation: ringPulse 2s infinite 1s;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.sparkle-effect {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.sparkle:nth-child(1) {
    top: 0;
    left: 50%;
    animation: sparkle 2s infinite 0.2s;
}

.sparkle:nth-child(2) {
    top: 50%;
    right: 0;
    animation: sparkle 2s infinite 0.7s;
}

.sparkle:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation: sparkle 2s infinite 1.2s;
}

.sparkle:nth-child(4) {
    top: 50%;
    left: 0;
    animation: sparkle 2s infinite 1.7s;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1) translate(15px, -15px);
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin: 20px 0;
    font-weight: 900;
}

.text-gradient {
    background: linear-gradient(135deg, #0061ff, #60efff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.forgot-password-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin: 0 auto 50px;
}

.forgot-password-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    animation: cardAppear 1s forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0061ff, #60efff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 26px;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.6;
    z-index: 0;
}

.card-icon i {
    position: relative;
    z-index: 1;
}

.water-drops {
    position: absolute;
    width: 100%;
    height: 100%;
}

.drop {
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.drop:nth-child(1) {
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    animation: dropFall 3s infinite;
}

.drop:nth-child(2) {
    top: -15px;
    left: 30%;
    transform: translateX(-50%) rotate(-45deg);
    animation: dropFall 3s infinite 1s;
}

.drop:nth-child(3) {
    top: -25px;
    left: 70%;
    transform: translateX(-50%) rotate(-45deg);
    animation: dropFall 3s infinite 2s;
}

@keyframes dropFall {
    0% {
        top: -20px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        top: 100px;
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.card-header h2 {
    font-size: 2rem;
    margin: 20px 0 10px;
}

.description {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: rgba(255, 107, 107, 0.15);
    border-left: 4px solid #ff6b6b;
}

.alert-success {
    background-color: rgba(46, 213, 115, 0.15);
    border-left: 4px solid #2ed573;
}

.alert-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.alert-error .alert-icon {
    color: #ff6b6b;
}

.alert-success .alert-icon {
    color: #2ed573;
}

.alert-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
}

.form-group label i {
    color: #0061ff;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #0061ff;
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.15);
    outline: none;
}

.form-actions {
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    animation: btnGlow 3s infinite linear;
}

@keyframes btnGlow {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 97, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 97, 255, 0.3);
}

/* Additional Links */
.additional-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.back-link i {
    font-size: 0.8rem;
}

.back-link:hover {
    color: #0061ff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-header h2 {
        font-size: 1.8rem;
    }

    .forgot-password-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .btn {
        padding: 12px 20px;
    }
}
