/* KYCS Portal - Replicating portal.keepyourcarsafe.co.uk */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.portal-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.keepyourcarsafe.co.uk/cdn/shop/files/DSC_0163.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body.portal-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.portal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

.portal-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
}

.portal-heading {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portal-subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.portal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 2.2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 40px 0 rgba(0, 0, 0, 0.45),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.portal-btn:hover::before {
    opacity: 1;
}

.portal-btn-customer {
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.9) 0%, rgba(0, 90, 139, 0.9) 100%);
}

.portal-btn-staff {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(238, 90, 36, 0.9) 100%);
}

.btn-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-divider {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
    margin: 0.5rem 0 1rem;
    border-radius: 2px;
}

.btn-subtext {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-container {
        width: 95%;
        padding: 1rem;
    }

    .portal-heading {
        font-size: 2rem;
    }

    .portal-subtitle {
        font-size: 1rem;
    }

    .portal-logo {
        max-width: 200px;
    }

    .portal-btn {
        padding: 1.5rem 1.8rem;
    }

    .btn-text {
        font-size: 1.3rem;
    }

    .btn-divider {
        width: 50px;
    }

    .btn-subtext {
        font-size: 0.85rem;
    }
}
