@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('Img/ubg.jpg') no-repeat center center fixed;
    background-size: cover;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

body::-webkit-scrollbar {
  display: none;
}

/* Loader styles */
#loader {
    position: fixed;
    inset: 0;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.10, 0, 0.14, 1);
    padding: 1rem;
}

#loader-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 8vw, 4rem);
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #F48C06, #DC2F02);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    word-break: break-word;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#loader.hidden {
    transform: translateY(-100%);
}

/* --- Fade Section Animation --- */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
    color: white;
}

.logo img {
    width: 55px;
    height: auto;
}

.logo .text a {
    font-size: 26px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: block;
}

.logo .text p {
    margin-top: -5px;
    font-size: 13px;
    color: #ccc;
}

/* --- Container --- */
.container {
    background: #f7f7f7;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 25px 30px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    margin-top: 10px;
}

.form-wrapper h2 {
    text-align: center;
    font-size: 24px;
    color: #153d82;
    margin-bottom: 25px;
}

/* Floating message (AJAX notification - no scroll change) */
.floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #ff3d3d, #f97316);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 9999;
    animation: slideIn 0.4s ease forwards;
}

.floating-message.hide {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}



.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #1e1e1e;
    font-weight: bold;
    font-size: 12px;
}

.password-hint {
    font-size: 12px;
    color: #4b4b4b;
    margin-bottom: 15px;
    font-weight: 500;
}

.forgot-pwd {
    text-align: right;
    margin-top: 5px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.forgot-pwd:hover {
    text-decoration: underline;
}

.create-account-btn {
    position: relative;
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    border-bottom: 3px solid #153d82;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: color .3s;
}

.create-account-btn span {
    position: relative;
    z-index: 2;
}

.create-account-btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background: #153d82;
    transition: bottom .35s ease;
    z-index: 1;
}

.create-account-btn:hover::before {
    bottom: 0;
}

.create-account-btn:hover span {
    color: #fff;
}

.signup-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.other-options {
    text-align: center;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 14px;
    position: relative;
    gap: 15px;
    width: 100%;
}

.oauth-btn {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
  gap: 10px;
}

.oauth-btn:hover{
    background: #e7e7e7;
}

/* Google button */
.google {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #DADADA;
}

/* Facebook button */
.facebook {
  background: #1877F2;
}
.facebook img {
}

/* Apple button */
.apple {
  background: #24292E;
}
.apple img {
  filter: brightness(0) invert(1);
}

/* Hover */
.oauth-btn:hover {
  transform: translateY(-2px);
}
.oauth-btn img {
  width: 20px;
}

.legal{
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 132px;
}

.legal a{
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.legal a:hover{
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    /* .logo {
        flex-direction: column;
        margin-top: 20px;
    } */

    .container {
        margin-top: 30px;
        padding: 25px 20px;
        max-width: 90%;
    }
    
    .other-options {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 18px;
        width: 100%;
    }

    .oauth-btn {
        width: 100%;
        height: 45px;
    }

    .oauth-btn img {
        width: 18px;
    }
    
    .legal{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 120px;
    }
}

@media (max-width: 360px) {
    .other-options {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 18px;
        width: 100%;
    }

    .oauth-btn {
        width: 100%;
        height: 45px;
    }

    .oauth-btn img {
        width: 18px;
    }
    
    .legal{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 90px;
    }
}