/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* phppot-style-modern-final.css */
body, html {
    height: 100%;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(to right, #7a879c, #dde5eb);
}

.phppot-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 25px 25px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.phppot-container h1, .signup-heading {
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #343a40;
}

.signup-subheading {
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
    line-height: 1.4;
}

.phppot-container .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Input field styling with validation states */
.phppot-container input[type="text"],
.phppot-container input[type="password"],
.phppot-container input[type="email"],
.phppot-container select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s ease;
}

.phppot-container input[type="text"]:focus,
.phppot-container input[type="password"]:focus,
.phppot-container input[type="email"]:focus,
.phppot-container select:focus {
    border-color: #4070f4;
}

/* Invalid input styling */
.phppot-container input.invalid,
.phppot-container select.invalid {
    border-color: #d93025;
}

/* Password field container for eye icon */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;

}

.show-hide {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #919191;
    cursor: pointer;
    z-index: 10;
}

.show-hide:hover {
    color: #4070f4;
}

/* Error message styling */
.field .error {
    display: flex;
    align-items: center;
    margin-top: 6px;
    color: #d93025;
    font-size: 13px;
    display: none;
}

.invalid .error {
    display: flex;
}

.error .error-icon {
    margin-right: 6px;
    font-size: 15px;
}

.create-password .error {
    align-items: flex-start;
}

.create-password .error-icon {
    margin-top: 4px;
}

/* Error field styling */
.error-field {
    border-color: #d93025 !important;
}

.phppot-container input[type="submit"],
.phppot-container button {
    width: 100%;
    padding: 10px;
    background-color: #4070f4;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.phppot-container input[type="submit"]:hover,
.phppot-container button:hover {
    background-color: #0e4bf1;
}

.error-msg, .success-msg {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-msg {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.signup-align a {
    display: block;
    margin-top: 10px;
    color: #4070f4;
    text-align: center;
    font-size: 0.9em;
    text-decoration: none;
}

.signup-align a:hover {
    text-decoration: underline;
}

canvas#renderCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    background-color: #e9ecef;
}

.success-login-btn {
    background-color: #4070f4 !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 1.1em !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.3s ease !important;
}

.success-login-btn:hover {
    background-color: #0e4bf1 !important;
    color: white !important;
    text-decoration: none !important;
}

.password-hint {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    display: none !important;
    text-align: left;
    font-size: 0.8em;
    color: #6c757d;
}

.input-box-330:focus + .password-hint {
    display: block;
}

/* Additional styling for better UX */
.row {
    margin: 15px 0px;
    text-align: center;
}

.inline-block {
    display: inline-block;
    width: 100%;
}

/* OAuth styling */
.oauth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d1d1d1;
}

.oauth-divider span {
    background: rgba(255, 255, 255, 0.5);
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.9em;
}

.custom-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.custom-oauth-btn:hover {
    background: #f8f9fa;
    border-color: #4070f4;
}

.oauth-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}