/* General styles for body and container */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #f5f3ef;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1d2e 0%, #1a2b3a 50%, #1e2d3d 100%);
    clip-path: ellipse(120% 60% at 50% 0%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px 35px;
    position: relative;
    animation: cardFloat 3s ease-in-out infinite;
    background-image: 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='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid rgba(212, 192, 138, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4c08a;
    box-shadow: 0 4px 15px rgba(212, 192, 138, 0.3);
    margin-bottom: 15px;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 28px;
    font-weight: bold;
    color: #d4c08a;
    letter-spacing: 2px;
}

.header-title {
    font-size: 24px;
    color: #1e2d3d;
    margin-top: 10px;
}

.header-subtitle {
    font-size: 14px;
    color: #666;
}

.form-group {
    margin-bottom: 25px;
}

.input-label {
    font-size: 12px;
    font-weight: 600;
    color: #d4c08a;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #d4c08a;
}

.eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #d4c08a;
}

input {
    width: 100%;
    padding: 16px 50px 16px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
}

input:focus {
    border-color: #d4c08a;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 192, 138, 0.2);
}

.login-btn {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    background: linear-gradient(135deg, #1e2d3d 0%, #0d1521 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: ' →';
    margin-left: 8px;
    transition: 0.3s;
}

.login-btn:hover::after {
    margin-left: 12px;
}

.login-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 192, 138, 0.4);
}

.signin-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.signin-link a {
    color: #d4c08a;
    font-weight: 600;
    text-decoration: none;
}

/* Toast styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.error { background-color: #dc3545; }

.toast.show {
    animation: slideIn 0.5s forwards, fadeOut 0.5s 4s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
