@font-face {
    font-family: 'Montserrat-Bold';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
  }

@font-face {
    font-family: 'Montserrat-ExtraBold';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
  }

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  }

@font-face {
    font-family: 'EBGaramond-ExtraBold';
    src: url('fonts/EBGaramond-ExtraBold.ttf') format('truetype');
  }

@font-face {
    font-family: 'EBGaramond-Medium';
    src: url('fonts/EBGaramond-Medium.ttf') format('truetype');
  }

@font-face {
    font-family: 'EBGaramond-Regular';
    src: url('fonts/EBGaramond-Regular.ttf') format('truetype');
  }

@font-face {
    font-family: 'EBGaramond-SemiBold';
    src: url('fonts/EBGaramond-SemiBold.ttf') format('truetype');
  }

@font-face {
    font-family: 'Gill-Sans';
    src: url('fonts/Gill-Sans.otf') format('opentype');
  }

@font-face {
    font-family: 'Gill-Sans-Medium';
    src: url('fonts/Gill-Sans-Medium.otf') format('opentype');
  }

@font-face {
    font-family: 'Gotham-Medium';
    src: url('fonts/Gotham-Medium.otf') format('opentype');
  }

@font-face {
    font-family: 'Gotham-Light';
    src: url('fonts/Gotham-Light.otf') format('opentype');
  }

@font-face {
    font-family: 'Recoleta-Bold';
    src: url('fonts/Recoleta-Bold.ttf') format('truetype');
  }

@font-face {
    font-family: 'Recoleta-Medium';
    src: url('fonts/Recoleta-Medium.ttf') format('truetype');
  }

@font-face {
    font-family: 'Recoleta-Regular';
    src: url('fonts/Recoleta-Regular.ttf') format('truetype');
  }

@font-face {
    font-family: 'Recoleta-SemiBold';
    src: url('fonts/Recoleta-SemiBold.ttf') format('truetype');
  }

@font-face {
    font-family: 'Recoleta-Thin';
    src: url('fonts/Recoleta-Thin.ttf') format('truetype');
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    height: 100%;
}

body {
    background-image: url(/static/images/background5.jpg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    background-attachment: fixed;
}

/* Container */
.container {
    width: 100%;
    max-width: 400px;
}

/* Form Box */
.form-box {
    background: rgba(17, 17, 17, 0.829);
    padding: 30px;
    border-radius: 12px;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Heading */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-family: 'Recoleta-SemiBold', sans-serif;
    font-size: 24px;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Recoleta-Regular', sans-serif;
    color: #dfdfdf;
    font-size: 14px;
}

/* Inputs */
input {
    width: 100%;
    padding: 12px;
    background: rgba(22, 22, 22, 0.514);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-family: 'Recoleta-Regular', sans-serif;
    font-size: 16px;
    color: #ffffff;
    transition: background 0.3s ease;
}

input:focus {
    background: #303030dc;
    outline: none;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background: rgb(58,146,180);
    background: linear-gradient(34deg, rgba(58,146,180,1) 0%, rgba(37,170,128,1) 50%, rgba(0,245,193,1) 100%);
    color: #000000;
    border: none;
    border-radius: 20px;
    font-family: 'Recoleta-SemiBold', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Social Sign-In Buttons Container */
.social-signin-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center; /* Center the single button */
}

/* Social Sign-In Buttons */
.social-signin {
    flex: 1; /* Equal width for both buttons */
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
}

.social-signin.google {
    background: rgb(131 131 131 / 20%);
    gap: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.social-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Toggle Text */
p {
    text-align: center;
    margin-top: 15px;
    color: #f3f3f3;
    opacity: 0.9;
    font-family: 'Recoleta-Regular', sans-serif;
}

p span {
    color: #e4e4e4;
    background: rgba(22, 22, 22, 0.288);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-family: 'Recoleta-Regular', sans-serif;
    transition: background 0.3s ease;
}

p span:hover {
    background: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 0;
}

.forgot-password span {
    color: #eeeeee;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password span:hover {
    color: #2dffd2;
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-group {
    margin-bottom: 15px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
    color: #dfdfdf;
    font-size: 14px;
    font-family: 'Recoleta-Regular', sans-serif;
}

.terms-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #25aa80; /* Matches your gradient middle color */
    cursor: pointer;
}

.terms-label span {
    line-height: 1.5; /* Improves vertical alignment */
}

.terms-label a {
    color: #2dffd2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-label a:hover {
    color: #00f5c1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-box {
        padding: 20px;
        width: 90%;
        margin: 0 auto;
    }

    h2 {
        font-size: 20px;
    }

    input, button {
        font-size: 14px;
        padding: 10px;
    }

    p {
        font-size: 14px;
    }

    .social-signin-buttons {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 8px;
    }
}


/* Alert Modal Overlay */
.alert-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Start transparent */
    backdrop-filter: blur(3px);
    z-index: 2000; /* Above other modals */
    justify-content: center;
    align-items: center; /* Center on PC */
    opacity: 0; /* Start hidden for animation */
    transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out; /* Smooth fade */
    pointer-events: none; /* Prevent interaction until open */
}

.alert-modal.open {
    opacity: 1; /* Fully visible */
    background: rgba(0, 0, 0, 0.7); /* Greyed-out background */
    pointer-events: auto; /* Enable interaction */
}

/* Alert Modal Content */
.alert-modal-content {
    background: #0f0f0fa2; /* Match dashboard theme */
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: scale(0.9); /* Start slightly smaller */
    opacity: 0; /* Start hidden */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth scale and fade */
}

.alert-modal.open .alert-modal-content {
    transform: scale(1); /* Full size */
    opacity: 1; /* Fully visible */
}

.alert-modal-content h2 {
    font-family: "Recoleta-Bold", sans-serif;
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #e0e0e0; /* Match your theme */
}
.alert-modal-content p {
    font-family: "Recoleta-Thin", sans-serif;
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #ffffff; /* Match your theme */
    letter-spacing: 0.5px;
}

.alert-modal-content p strong {
    font-family: "Recoleta-SemiBold", sans-serif;
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #38f1f1; /* Match your theme */
    letter-spacing: 0.5px;
}

.alert-modal-content input {
    width: 100%;
    padding: 8px;
    background: #111111e0;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    border-radius: 10px;
    color: #e0e0e0;
    font-family: "Recoleta-Thin", sans-serif;
    font-size: 14px;
}

.alert-modal-content ul {
    font-family: "Recoleta-Thin", sans-serif;
    text-align: left;
    margin: 0 0 10px 20px;
    padding: 0;
    list-style-type: disc;
    color: #ffffff; /* Match your theme */
    letter-spacing: 0.5px;
}
.alert-modal-content ul li {
    font-family: "Recoleta-Thin", sans-serif;
    text-align: left;
    font-size: 14px;
    color: #ffffff; /* Match your theme */
    margin: 5px 0;
    letter-spacing: 0.5px;
}

.alert-modal-content p:last-child {
    margin-bottom: 0;
}

/* Message Styling */
#alertModalMessage {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Buttons Container */
.alert-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Styling */
.alert-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Recoleta-Bold', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    border: none;
}

.alert-modal-btn.primary {
    letter-spacing: 1px;
    background: rgb(58,146,180);
    background: linear-gradient(34deg, rgba(58,146,180,1) 0%, rgba(37,170,128,1) 50%, rgba(0,245,193,1) 100%);
    white-space: nowrap;
    color: #ffffff;
}

.alert-modal-btn.primary:hover {
    background: rgb(58,146,180);
    background: linear-gradient(34deg, rgb(49, 182, 153) 0%, rgb(37, 106, 170) 50%, rgb(0, 216, 245) 100%);
}

.alert-modal-btn.secondary {
    letter-spacing: 1px;
    background: #2e3440; /* Dark grey for secondary */
    color: #e0e0e0;
    border: 1px solid #4c566a;
}

.alert-modal-btn.secondary:hover {
    background: #3b4252;
}

/* PC Layout */
@media (min-width: 601px) {
    .alert-modal-content {
        width: 90%;
        max-width: 400px; /* Fixed width on PC */
    }
}

/* Mobile Layout */
@media (max-width: 600px) {
    .alert-modal {
        align-items: flex-end; /* Align to bottom */
        padding-bottom: env(safe-area-inset-bottom, 10px); /* Account for browser bars */
    }
    .alert-modal-content {
        width: calc(100% - 20px); /* 100% width with 10px margins */
        margin: 0 10px 10px 10px; /* 10px from bottom and sides */
        min-height: 100px; /* Minimum height, adjusts to content */
        border-radius: 10px 10px 0 0; /* Rounded top only */
    }
    .alert-modal-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 10px;
    }
    .alert-modal-btn {
        width: 100%; /* Full width on mobile */
    }
    .controls-panel p {
        text-align: center;
        padding: 0;
    }
}
