* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-container {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px auto;
    border-radius: 30px;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #edf2fb;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title {
    text-align: center;
    font-size: 34px;
    color: var(--brand-primary);
    margin-bottom: 12px;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.5;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: bold;
    font-size: 14px;
}

.field input {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    padding: 0 18px;
    font-size: 16px;
    transition: 0.2s;
    outline: none;
    background: #f8fbff;
}

.field input:focus {
    border-color: var(--brand-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(29,94,216,0.12);
}

.login-button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(29,94,216,0.28);
}

.footer-text {
    text-align: center;
    color: #94a3b8;
    margin-top: 28px;
    font-size: 13px;
}

.icloud-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 520px;
    transform: translate(-50%, -140%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), inset 0 0 0 1px rgba(255,255,255,0.75);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: icloudToastSlide 5.5s ease-in-out forwards;
}

.icloud-toast-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4f, #d90429);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 10px 24px rgba(217, 4, 41, 0.28);
}

.icloud-toast-success .icloud-toast-icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 10px 24px rgba(21,128,61,0.28);
}

.icloud-toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icloud-toast-content strong {
    font-size: 15px;
    color: #111827;
}

.icloud-toast-content span {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

@keyframes icloudToastSlide {
    0% { transform: translate(-50%, -140%); opacity: 0; }
    12% { transform: translate(-50%, 0); opacity: 1; }
    78% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, -140%); opacity: 0; }
}
