@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&display=swap");

:root {
    --text-color-1: black;
    --text-color-2: #5c5c5c;
    --lighter-text: #666666;
    --blue-text: blue;
    --green-text: green;
    --link-color: #3b82f6;
    --orange-text: darkorange;
    --red-text: red;
    
    --bg-color-1: #ebebeb;
    --bg-color-2: #ffffff;
    --input-bg: #c9d5ff;
    
    --warning-info-bg: linear-gradient(135deg, #ffebee, #ffcdd2);
    --warning-info-text: red;
    --warning-info-border: red;
    
    --success-info-text: #155724;
    --success-info-bg: #d4edda;
    --success-info-border: #28a745;
    
    --topnavbar-shadow: 0 2px 9px rgba(0, 0, 0, 0.7);
    --cards-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    
    --app-theme-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    --navbar-color: linear-gradient(98.7deg, rgba(6,238,243,1) 10.6%, rgba(34,126,209,1) 72.2%, rgba(35,44,51,1) 122.5%, rgba(35,44,51,1) 122.5%);
    --pop-ups-radius: 20px;
    --inputs-radius: 25px;
    
    --btns-border: rgba(0, 0, 0, 0.2);
    --btns-border-hover: #F56040;
    --inputs-border: rgba(0, 0, 0, 0.2);
    --inputs-focus-border: #ff6b6b;
    
    --orange-btn-bg: linear-gradient(89.9deg, rgba(255,244,26,1) 8.7%, rgba(243,131,0,1) 81.9%);
    --orange-btn-color: black;
    
    --blue-gradient: linear-gradient(69.2deg, rgba(77,143,251,1) 35.3%, rgba(202,51,255,1) 100.3%);
    --green-gradient: linear-gradient(75.1deg, rgba(34,126,34,1) 6%, rgba(99,226,17,1) 84.3%);
    --red-gradient: radial-gradient(circle farthest-corner at 10% 20%, rgba(214,40,40,1) 0%, rgba(255,195,0,1) 90%);
    --orange-gradient: linear-gradient(67.2deg, rgba(250,143,78,1) -0.5%, rgba(247,171,94,1) 38.3%, rgba(240,228,99,1) 98.5%);
}

body.active {
    --text-color-1: white;
    --text-color-2: white;
    --lighter-text: #CCCCCC;
    --blue-text: skyblue;
    --green-text: lime;
    --orange-text: orange;
    
    --bg-color-1: #1E1E1E;
    --bg-color-2: #2D2D2D;
    --input-bg: #242424;
    
    --warning-info-bg: linear-gradient(135deg, #2d1517, #3d1f23);
    --warning-info-text: #ef9a9a;
    
    --btns-border: rgba(255, 255, 255, 0.15);
    --inputs-border: rgba(255, 255, 255, 0.15);
}

* {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    transition: all .2s linear;
}

body {
    background-color: var(--bg-color-1);
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-image: var(--navbar-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    box-shadow: var(--topnavbar-shadow);
}

.header .logo {
    font-weight: bolder;
    font-size: 1.9rem;
    margin-left: 5px;
    color: white;
}

.header .logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.header .logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.header .logo .logo-img:hover {
    transform: scale(1.05);
}

.header .icons {
    margin-right: .4rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .icons i {
    height: 2.4rem;
    width: 2.4rem;
    line-height: 2.2rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--bg-color-1);
    color: var(--text-color-1);
    cursor: pointer;
    text-align: center;
    border-radius: .6rem;
    margin-right: 3px;
    border: 1px solid var(--btns-border);
}

.header .icons i:hover {
    color: #fff;
    background: orange;
    border: 1px solid var(--btns-border-hover);
}

.forgot-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 20px;
}

.forgot-container {
    background: var(--bg-color-2);
    border-radius: var(--pop-ups-radius);
    box-shadow: var(--cards-shadow);
    max-width: 550px;
    width: 100%;
    padding: 40px 35px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-header {
    text-align: center;
    margin-bottom: 35px;
}

.forgot-header i {
    font-size: 50px;
    background: var(--app-theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.forgot-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-1);
    margin-bottom: 8px;
}

.forgot-header p {
    color: var(--text-color-2);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-color-1);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-2);
    font-size: 1rem;
    z-index: 5;
}

input[type="email"] {
    width: 100%;
    padding: 12px 45px;
    border: 2px solid var(--inputs-border);
    border-radius: var(--inputs-radius);
    background: var(--input-bg);
    color: var(--text-color-1);
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--inputs-focus-border);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.error-container {
    background: var(--warning-info-bg);
    border: 2px solid var(--warning-info-border);
    border-radius: var(--inputs-radius);
    padding: 15px;
    margin-bottom: 20px;
    animation: shake 0.5s ease;
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-msg {
    color: var(--warning-info-text);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.error-msg:last-child {
    margin-bottom: 0;
}

.error-msg i {
    margin-right: 8px;
    font-size: 1rem;
}

.form-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--inputs-radius);
    background: var(--orange-btn-bg);
    color: black;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-btn i {
    font-size: 1.1rem;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.form-btn:active {
    transform: translateY(0);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--inputs-border);
}

.login-link p {
    color: var(--text-color-2);
    font-size: 0.95rem;
}

.login-link a {
    color: var(--link-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: var(--orange-text);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 97%;
    pointer-events: none;
}

.toast-notification {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 20px 52px 20px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    color: white;
    pointer-events: auto;
    width: 100%;
}

.toast-notification.success {
    background: var(--green-gradient);
}

.toast-notification.error {
    background: var(--red-gradient);
}

.toast-notification.info {
    background: var(--blue-gradient);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-notification.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.toast-icon svg {
    width: 22px;
    height: 22px;
    color: white;
    stroke-width: 2.5;
}

.toast-content {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    display: flex;
    align-items: center;
}

.toast-text {
    font-size: 14px;
    line-height: 1.4;
    color: white;
    margin: 0;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-text .toast-title {
    font-weight: 600;
    color: white;
    display: block;
}

.toast-text .toast-message {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    font-size: 13px;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 33px;
    height: 33px;
    min-width: 33px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--btns-border);
    border-radius: 8px;
    color: var(--text-color-1);
    box-shadow: var(--cards-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    padding: 0;
}

.toast-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.toast-close:active {
    transform: scale(0.95);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    transform: translateX(-100%);
    animation: progressBar 4s linear;
}

@keyframes progressBar {
    to {
        transform: translateX(0);
    }
}

.toast-glow {
    position: absolute;
    inset: -2px;
    background: inherit;
    border-radius: 17px;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.spinner-double {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-double::before,
.spinner-double::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner-double::before {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: #3b82f6;
    animation: spin 1s linear infinite;
}

.spinner-double::after {
    width: 44px;
    height: 44px;
    top: 8px;
    left: 8px;
    border: 4px solid transparent;
    border-bottom-color: #60a5fa;
    border-left-color: #60a5fa;
    animation: spin 0.7s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .forgot-container {
        padding: 30px 25px;
    }

    .forgot-header h2 {
        font-size: 1.5rem;
    }

    .forgot-header i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 48px;
    }

    .header .icons i {
        height: 2.2rem;
        width: 2.2rem;
        line-height: 2.0rem;
        font-size: 1.25rem;
    }

    .forgot-wrapper {
        padding: 60px 15px 15px;
    }

    .forgot-container {
        padding: 25px 20px;
    }
}

@media (max-width: 320px) {
    .header {
        height: 44px;
    }

    .forgot-container {
        padding: 20px 15px;
    }

    input[type="email"] {
        padding: 10px 40px;
        font-size: 0.9rem;
    }

    .form-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}