.toast-notification {
    position: fixed;
    text-decoration: none;
    z-index: 999999;
    max-width: 300px;
    background-color: #fff;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: flex;
    padding: 10px;
    transform: translate(0, -150%); /* Initial hidden state */
}
.toast-notification .toast-notification-wrapper {
    flex: 1;
    padding-right: 10px;
    overflow: hidden;
}
.toast-notification .toast-notification-wrapper .toast-notification-header {
    padding: 0 0 5px 0;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
    color: #4f525a;
}
.toast-notification .toast-notification-wrapper .toast-notification-content {
    font-size: 14px;
    margin: 0;
    padding: 0;
    word-break: break-all;
    color: #4f525a;
}
.toast-notification .toast-notification-close {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    line-height: 24px;
    padding-bottom: 4px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
}
.toast-notification .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

/* Positioning transforms */
.toast-notification.toast-notification-top-center {
    transform: translate(calc(50vw - 50%), -150%);
}
.toast-notification.toast-notification-top-right {
    transform: translate(0, -150%);
}
.toast-notification.toast-notification-bottom-left {
    transform: translate(0, 150%);
}
.toast-notification.toast-notification-bottom-right {
    transform: translate(0, 150%);
}
.toast-notification.toast-notification-bottom-center {
    transform: translate(calc(50vw - 50%), 150%);
}

/* Style Variants - Keep only the ones you use */
/* Example: Success */
.toast-notification.toast-notification-success {
    background-color: #C3F3D7;
    border-left: 4px solid #51a775;
}
.toast-notification.toast-notification-success .toast-notification-wrapper .toast-notification-header {
    color: #51a775;
}
.toast-notification.toast-notification-success .toast-notification-wrapper .toast-notification-content {
    color: #51a775;
}
.toast-notification.toast-notification-success .toast-notification-close {
    color: rgba(0, 0, 0, 0.2);
}
.toast-notification.toast-notification-success .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

/* Example: Error */
.toast-notification.toast-notification-error {
    background-color: #6783ff;
    border-left: 4px solid #0044ff;
}
.toast-notification.toast-notification-error .toast-notification-wrapper .toast-notification-header {
    color: #ffffff;
}
.toast-notification.toast-notification-error .toast-notification-wrapper .toast-notification-content {
    color: #ffffff;
}
.toast-notification.toast-notification-error .toast-notification-close {
    color: rgba(0, 0, 0, 0.2);
}
.toast-notification.toast-notification-error .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

/* Optional: Dimmed state for old toasts */
.toast-notification.toast-notification-dimmed {
    opacity: .3;
}
.toast-notification.toast-notification-dimmed:hover,
.toast-notification.toast-notification-dimmed:active {
    opacity: 1;
}

/* === Сообщения восстановления пароля === */
.recovery-message {
    max-width: 400px;
    margin: 12px auto 0;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.recovery-message.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.recovery-message.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптив для формы восстановления */
@media (max-width: 768px) {
    .recovery-form {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .recovery-form h1 {
        font-size: 22px;
        text-align: center;
    }
    
    .input {
        font-size: 15px;
        padding: 11px;
    }
    
    .auth__button {
        font-size: 15px;
        padding: 11px;
    }
}

/* === Обёртка для центрирования формы === */
.recovery-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.recovery-form {
    background-color: #1a6fbf;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px; /* Единая ширина */
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: white;
    box-sizing: border-box;
}

.recovery-form h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.form__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

.input:focus {
    box-shadow: 0 0 0 3px rgba(58, 170, 249, 0.4);
}

.main__controls {
    display: flex;
    justify-content: center;
}

.auth__button {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background-color: #3aaaf9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth__button:hover {
    background-color: #2d9be5;
}

.auth__button:disabled {
    background-color: #6c9fd4;
    cursor: not-allowed;
}

.supporting__control {
    display: flex;
    justify-content: center;
}

.supporting__back-button {
    padding: 8px 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.supporting__back-button:hover {
    background-color: #c2185b;
}

/* === Toast-уведомление в углу === */
.recovery-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 340px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    backdrop-filter: blur(4px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.recovery-toast.message-success {
    background-color: rgba(212, 237, 218, 0.95);
    color: #155724;
    border-left: 4px solid #28a745;
}

.recovery-toast.message-error {
    background-color: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* === Адаптив === */
@media (max-width: 768px) {
    .recovery-form {
        padding: 30px 24px;
        max-width: 100%;
    }
    
    .recovery-form h1 {
        font-size: 22px;
    }
    
    .input {
        font-size: 15px;
        padding: 11px 14px;
    }
    
    .auth__button {
        font-size: 15px;
        padding: 11px;
    }
    
    .recovery-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: 100%;
    }
}

/* === Toast для восстановления (в углу) === */
.recovery-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 340px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

.recovery-toast.message-success {
    background-color: rgba(212, 237, 218, 0.95);
    color: #155724;
    border-left: 4px solid #28a745;
}
.recovery-toast.message-error {
    background-color: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* === Адаптив для формы восстановления === */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .login-form,
    .login-info {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
    }
    
    .login-form {
        order: 2;
        background-color: #1a6fbf;
    }
    
    .login-info {
        order: 1;
        background-color: #122041;
        text-align: center;
        padding: 40px 20px 20px;
    }
    
    .college-logo {
        width: 100px;
        margin: 0 auto 15px;
        display: block;
    }
    
    .login-info h3 {
        font-size: 18px;
        margin: 0 0 10px;
    }
    
    .slogan {
        font-size: 14px;
        color: #cfd8dc;
        margin: 0;
    }
    
    .recovery-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: 100%;
    }
}